- fixed some potential bugs with strlcpy

This commit is contained in:
zolliker
2010-04-15 11:24:27 +00:00
parent ffa378b60d
commit 4a5691503d
3 changed files with 4 additions and 4 deletions

View File

@@ -334,7 +334,7 @@ int DornierSend(void **pData, char *pCommand, char *pReply, int iRepLen)
if (*pPtr == '\0') { /* no command */
return NOCOMMAND;
}
strlcpy(pOldCom, pPtr, 3);
strncpy(pOldCom, pPtr, 3); /* strlcpy probably wrong here */
iRet = SerialWriteRead(pData, pCommand, pReply, iRepLen);
/*