Both file and dp->d_name are NUL-terminated, so it pointless to first
commit09589bd8788dde9497506141bbbd187d879f9b84
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 8 Aug 2005 16:43:33 +0000 (8 16:43 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 8 Aug 2005 16:43:33 +0000 (8 16:43 +0000)
treeeff9083e958d2ff222d631f36168c21d3dedb42b
parent185abd9b9ad7e79f64e9a143bd9c8d920dbb159b
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