Fix the sign issue by reordering the operations. Use memcpy instead
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 13:45:42 +0000 (13:45 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Thu, 28 Apr 2005 13:45:42 +0000 (13:45 +0000)
commitceeddb35208858202f180b05c0445e48297af9e5
tree2cd29aeed7249e8a8e4bb98477073d6de07591ba
parent3b5a5f3adac6598e30185873e04a6cc45ee901e9
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