Commit 15089022 authored by Wayne Davison's avatar Wayne Davison

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

a "/" into an empty string.
parent f69204ad
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment