Both file and dp->d_name are NUL-terminated, so it pointless to first
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 8 Aug 2005 16:43:33 +0000 (16:43 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 8 Aug 2005 16:43:33 +0000 (16:43 +0000)
commit803d03a20494589937072ac078e00fd233d17e90
tree75013058c182e6e746f11f11ac9593a5a8949024
parent56b56f487b39205218abc066cb42c463852897f9
Both file and dp->d_name are NUL-terminated, so it pointless to first
run strlen, compare the size and do a strncmp afterwards -- just strcmp.
usr.bin/ftp/complete.c