version 1.66, 2005/12/13 05:40:33 |
version 1.67, 2005/12/20 05:04:28 |
|
|
return (NULL); |
return (NULL); |
} |
} |
/* Now we get the prefix of the name the user typed. */ |
/* Now we get the prefix of the name the user typed. */ |
strlcpy(prefixx, buf, sizeof(prefixx)); |
if (strlcpy(prefixx, buf, sizeof(prefixx)) >= sizeof(prefixx)) |
|
return (NULL); |
cp = strrchr(prefixx, '/'); |
cp = strrchr(prefixx, '/'); |
if (cp == NULL) |
if (cp == NULL) |
prefixx[0] = 0; |
prefixx[0] = '\0'; |
else |
else |
cp[1] = 0; |
cp[1] = '\0'; |
|
|
preflen = strlen(prefixx); |
preflen = strlen(prefixx); |
/* cp is the tail of buf that really needs to be compared. */ |
/* cp is the tail of buf that really needs to be compared. */ |