Always use strlcpy, in the last case of possible truncation also check
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 27 Apr 2005 11:50:50 +0000 (11:50 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 27 Apr 2005 11:50:50 +0000 (11:50 +0000)
commitbcabe2991230ec6eda2d2f126ad5eede66fb7def
tree3199f4b33cf8ea3f286c930886508522a0572770
parentaf11cc91e0c3ac171a0cb2e6adc3aff98ada35c3
Always use strlcpy, in the last case of possible truncation also check
the return value and return NULL if necesary.
lib/libc/gen/dirname.c