- fixed some potential bugs introduced when replacing strncpy and

strncat by strlcpy and strlcat
This commit is contained in:
zolliker
2010-04-14 08:46:17 +00:00
parent 1c558e7f6c
commit 9690db1c3d
10 changed files with 20 additions and 20 deletions

View File

@ -118,7 +118,7 @@ IPair *IFReadConfigFile(FILE * fd)
continue;
iLen = pPos - pBueffel;
strlcpy(pName, pBueffel, iLen);
strncpy(pName, pBueffel, iLen);
pName[iLen] = '\0';
strlcpy(pValue, (pPos + 1),131);
RemoveWhiteSpace(pName);