Fix the sign issue by reordering the operations. Use memcpy instead
commit34d0b6a1540758cc1e416192956691d16c5b57f4
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 13:45:42 +0000 (28 13:45 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 13:45:42 +0000 (28 13:45 +0000)
treee11dacd4da829b669de14fb60e6c12100fdeea85
parentc2951e69087a326e435321e10892abed551a5e9a
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.
lib/libc/gen/dirname.c