- replaced strlcat by strlcpy at places where it made sense

This commit is contained in:
zolliker
2010-04-14 08:55:55 +00:00
parent cf8c7ee21f
commit 37f4fea6f4
4 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ int HaakeHandler(void *object)
if (strcmp(eab->ans, eab->version) == 0) {
/* we are still connected with the same device */
} else if (*eab->version == '\0') {
strlcat(eab->version, eab->ans, sizeof(eab->version) - 1);
strlcpy(eab->version, eab->ans, sizeof(eab->version));
} else { /* version (and therefore device) changed */
eab->errCode = EASE_DEV_CHANGED;
eab->state = EASE_idle;