1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 16:28:50 -05:00
pacman/src/util
Dan McGee ae7139adcf Remove most usages of strncmp()
The supposed safety blanket of this function is better handled by
explicit length checking and usages of strlen() on known NULL-terminated
strings rather than hoping things fit in a buffer. We also have no need
to fully fill a PATH_MAX length variable with NULLs every time as long
as a single terminating byte is there. Remove usages of it by using
strcpy() or memcpy() as appropriate, after doing length checks via
strlen().

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05 21:29:02 -05:00
..
.gitignore src/util: update .gitignore 2010-12-12 20:23:25 -06:00
cleanupdelta.c signing: move to new signing verification and return scheme 2011-07-05 10:13:20 -05:00
Makefile.am pactree: rewrite in C 2010-12-12 20:21:15 -06:00
pactree.c signing: move to new signing verification and return scheme 2011-07-05 10:13:20 -05:00
testdb.c signing: move to new signing verification and return scheme 2011-07-05 10:13:20 -05:00
testpkg.c signing: move to new signing verification and return scheme 2011-07-05 10:13:20 -05:00
vercmp.c Remove most usages of strncmp() 2011-07-05 21:29:02 -05:00