maint: ls: use stpncpy/stpcpy, not strncpy/strcpy
authorJim Meyering <meyering@redhat.com>
Wed, 18 Apr 2012 12:49:22 +0000 (14:49 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 19 Apr 2012 11:10:36 +0000 (13:10 +0200)
commitbcb9078e380d81be62e8df00c45afc2f57392dc2
tree2736fc34691d541f3a44706c26fa80c68318a66c
parent280aa28c4dc82f394d423bfceaac29b5b48c3cd2
maint: ls: use stpncpy/stpcpy, not strncpy/strcpy

* src/ls.c (gobble_file): Move a decl "down".
(make_link_name): Do not hard-code '/'.  Use IS_ABSOLUTE_FILE_NAME
and dir_len instead.
Use stpcpy/stpncpy in place of strncpy/strcpy.
src/ls.c