patch-2.3.15 linux/net/khttpd/security.c
Next file: linux/net/khttpd/structure.h
Previous file: linux/net/khttpd/rfc.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Aug 23 10:41:25 1999
- Orig file:
v2.3.14/linux/net/khttpd/security.c
- Orig date:
Wed Aug 18 09:45:10 1999
diff -u --recursive --new-file v2.3.14/linux/net/khttpd/security.c linux/net/khttpd/security.c
@@ -156,7 +156,7 @@
while (List!=NULL)
{
- if (strstr(List->value,Filename)!=NULL)
+ if (strstr(Filename,List->value)!=NULL)
{
if (filp!=NULL)
fput(filp);
@@ -257,13 +257,14 @@
memset(String,0,255);
- strcat(String,"Dynamic strings are : -");
+ strncpy(String,"Dynamic strings are : -",255);
Temp = DynamicList;
while (Temp!=NULL)
{
max=253 - strlen(String) - strlen(Temp->value);
strncat(String,Temp->value,max);
- strcat(String,"- -");
+ max=253 - strlen(String) - 3;
+ strncat(String,"- -",max);
Temp = Temp->Next;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)