Make sure that the new slash-stripping P_PATH code doesn't turn

a "/" into an empty string.
This commit is contained in:
Wayne Davison
2003-09-11 03:49:53 +00:00
parent f69204adad
commit 15089022d4

View File

@@ -665,8 +665,8 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
string_set(parm_ptr,parmvalue);
if ((cp = *(char**)parm_ptr) != NULL) {
int len = strlen(cp);
while (len && cp[--len] == '/')
cp[len] = '\0';
while (len > 1 && cp[len-1] == '/') len--;
cp[len] = '\0';
}
break;