- 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

@@ -1064,6 +1064,7 @@ static hdbCallbackReturn MemGenSetCallback(pHdb node, void *userData,
memcpy(userData, &mm->v->v.doubleValue, sizeof(double));
break;
case HIPTEXT:
/* the use of strlcpy is probably buggy here (M.Z. 15.4.2010) */
strlcpy((char *) userData, (const char *) mm->v->v.text,
node->value.arrayLength);
break;