]> granicus.if.org Git - ngircd/commit
Lists_Add(): use size of destination when copying data
authorAlexander Barton <alex@barton.de>
Tue, 17 Apr 2012 10:54:38 +0000 (12:54 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 17 Apr 2012 10:54:38 +0000 (12:54 +0200)
commit8ec17063a6e651229e04605592ce3d6114075655
tree0d675f93ddbfdb997a765c72fa17ad3bf8c48949
parent67bd1bf34fc3f7bebb304cdf84284523c8ea09f5
Lists_Add(): use size of destination when copying data

This fixes the following warning of clang:

/src/ngircd/lists.c:152:44:
 warning: size argument in 'strlcpy' call appears to be size of the
 source; expected the size of the destination [-Wstrlcpy-strlcat-size]

But it isn't a real problem, because the size of the source always is the
same than the size of the destination ...
src/ngircd/lists.c