]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lib: don't use strlcpy() when strcpy() just works
authorVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:48:55 +0000 (00:48 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sun, 2 Mar 2014 23:48:55 +0000 (00:48 +0100)
commit27faad4fd79399eda8811d4315c96317ed47a151
treea188266e9a3ca93d40ecb8fed515cb089333d018
parentdcf5d2f72dc9924cbb3d589a5491183476c4fce6
lib: don't use strlcpy() when strcpy() just works

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.
src/lib/atom-private.c