Bump to v1.1.2

This commit is contained in:
Charles 2020-06-15 01:20:49 +02:00
parent 5e5ebb0025
commit 32d82b3568
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "LibTeleinfo",
"version": "1.1.1",
"version": "1.1.2",
"keywords": "teleinfo, french, meter, power, erdf, linky, tic",
"description": "Decoder for Teleinfo (aka TIC) from French smart power meters",
"repository":

View File

@ -1,5 +1,5 @@
name=LibTeleinfo
version=1.1.1
version=1.1.2
author=Charles-Henri Hallard <hallard.me>
maintainer=Charles-Henri Hallard <community.hallard.me>
sentence=Decoder for Teleinfo (aka TIC) from French smart power meters

View File

@ -426,7 +426,7 @@ char * TInfo::valueGet(char * name, char * value)
if (me->value) {
// copy to dest buffer
uint8_t lgvalue = strlen(me->value);
strlcpy(value, me->value , lgvalue );
strlcpy(value, me->value , lgvalue + 1 );
return ( value );
}
}
@ -661,7 +661,7 @@ ValueList * TInfo::checkLine(char * pline)
return NULL;
// Get our own working copy
strlcpy( buff, _recv_buff, len+1);
strlcpy( buff, pline, len+1);
p = &buff[0];
ptok = p; // for sure we start with token name