- fixed some strlcpy bugs

This commit is contained in:
zolliker
2010-04-15 09:40:27 +00:00
parent ce0e418326
commit 5ffe4f3905
3 changed files with 2 additions and 16 deletions

View File

@@ -378,7 +378,7 @@ static int SinfoxReadKey(pSinfox pSin, SicsInterp * pSics,
continue;
iLen = pPos - pBuf;
strlcpy(pName, pBuf, iLen);
strncpy(pName, pBuf, iLen); /* strlcpy is wrong here */
pName[iLen] = '\0';
strcpy(pValue, (pPos + 1));
RemoveWhiteSpace(pName);