Rework dirname() with the same logic Joerg introduced for basename():
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 15:15:06 +0000 (15:15 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 15:15:06 +0000 (15:15 +0000)
commit40db3a1f84bd4ed7c990164a81abf155af665183
treeadd28140359d62024664f5ce8079de2cd6d98a40
parentbd8cdd03c5b4ef1bcc0c2b4d401f38960cd6dcde
Rework dirname() with the same logic Joerg introduced for basename():
using strlcpy() instead of the memcpy().
lib/libc/gen/dirname.c