clang complains when we use strlcpy() with strlen() on the source. The
change was made because some other tools complained that we used
strcpy() instead of a more secure version. Since they don't agree, let's
switch to the saner thing to do: use strcpy() when it is safe to do.
free(result);
return NULL;
}
- strlcpy(stored, result, strlen(result) + 1);
+ strcpy(stored, result);
return stored;
}
if (strlen(value) > 250) goto bad;
el->value = _lldpctl_alloc_in_atom(atom, strlen(value) + 1);
if (el->value == NULL) return NULL;
- strlcpy((char*)el->value, value, strlen(value) + 1);
+ strcpy((char*)el->value, value);
el->len = strlen(value);
return atom;
case lldpctl_k_med_civicaddress_type: