cvs commit: src/lib/libc/gen dirname.c
Joerg Sonnenberger
joerg at crater.dragonflybsd.org
Thu Apr 28 06:46:29 PDT 2005
joerg 2005/04/28 06:45:42 PDT
DragonFly src repository
Modified files:
lib/libc/gen dirname.c
Log:
Fix the sign issue by reordering the operations. Use memcpy instead
of strncpy since we know that no '\0' can occur in the string. We have
also checked the size of the string already.
Revision Changes Path
1.6 +2 -2 src/lib/libc/gen/dirname.c
http://www.dragonflybsd.org/cvsweb/src/lib/libc/gen/dirname.c.diff?r1=1.5&r2=1.6&f=u
More information about the Commits
mailing list