From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/wifidog/patches/patch-libhttpd_protocol_c | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/wifidog/patches/patch-libhttpd_protocol_c (limited to 'package/wifidog/patches/patch-libhttpd_protocol_c') diff --git a/package/wifidog/patches/patch-libhttpd_protocol_c b/package/wifidog/patches/patch-libhttpd_protocol_c new file mode 100644 index 000000000..767337dd6 --- /dev/null +++ b/package/wifidog/patches/patch-libhttpd_protocol_c @@ -0,0 +1,48 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- wifidog-1.1.5.orig/libhttpd/protocol.c 2007-11-01 21:04:20.000000000 +0100 ++++ wifidog-1.1.5/libhttpd/protocol.c 2008-10-16 13:12:58.000000000 +0200 +@@ -83,7 +83,7 @@ int _httpd_readChar(request *r, char *cp + { + if (r->readBufRemain == 0) + { +- bzero(r->readBuf, HTTP_READ_BUF_LEN + 1); ++ memset(r->readBuf, 0, HTTP_READ_BUF_LEN + 1); + r->readBufRemain = _httpd_net_read(r->clientSock, + r->readBuf, HTTP_READ_BUF_LEN); + if (r->readBufRemain < 1) +@@ -352,7 +352,7 @@ void _httpd_storeData(request *r, char * + + cp = query; + cp2 = var; +- bzero(var, strlen(query)); ++ memset(var, 0, strlen(query)); + val = NULL; + while(*cp) + { +@@ -483,7 +483,7 @@ httpDir *_httpd_findContentDir(server, d + if (createFlag == HTTP_TRUE) + { + curChild = malloc(sizeof(httpDir)); +- bzero(curChild, sizeof(httpDir)); ++ memset(curChild, 0, sizeof(httpDir)); + curChild->name = strdup(curDir); + curChild->next = curItem->children; + curItem->children = curChild; +@@ -606,7 +606,7 @@ void _httpd_sendFile(httpd *server, requ + char *suffix; + struct stat sbuf; + +- suffix = rindex(path, '.'); ++ suffix = strrchr(path, '.'); + if (suffix != NULL) + { + if (strcasecmp(suffix,".gif") == 0) +@@ -699,7 +699,7 @@ char *_httpd_escape(str) + if (!ACCEPTABLE((unsigned char)*p)) + unacceptable +=2; + result = (char *) malloc(p-str + unacceptable + 1); +- bzero(result,(p-str + unacceptable + 1)); ++ memset(result, 0, (p-str + unacceptable + 1)); + + if (result == NULL) + { -- cgit v1.2.3