Second attempt on a trivial mod

git-svn-id: file:///home/jj/hercules.svn/trunk@3212 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
Jan Jaeger
2005-11-20 11:32:36 +00:00
parent 7737e54f62
commit a65d38dfbd

View File

@@ -656,8 +656,7 @@ TID httptid; /* Negotiation thread id */
}
/* Append trailing [back]slash, but only if needed */
rc = strlen(absolute_httproot_path);
if (absolute_httproot_path[rc-1] != '\\' &&
absolute_httproot_path[rc-1] != '/')
if (absolute_httproot_path[rc-1] != *HTTP_PS)
strlcat(absolute_httproot_path,HTTP_PS,sizeof(absolute_httproot_path));
free(sysblk.httproot); sysblk.httproot = strdup(absolute_httproot_path);
TRACE("HTTPROOT = %s\n",sysblk.httproot);// (debug display)