8375cc79cdafd1f27e691e44495c2a36773ee9bf
[openwrt.git] / package / busybox / patches / 150-wget_segv_fix.patch
1 diff -urN busybox-1.4.1/networking/wget.c busybox-1.4.1-wgetSEGV/networking/wget.c
2 --- busybox-1.4.1/networking/wget.c 2007-01-24 22:34:34.000000000 +0100
3 +++ busybox-1.4.1-wgetSEGV/networking/wget.c 2007-02-11 17:21:18.000000000 +0100
4 @@ -543,7 +543,9 @@
5 p = strchr(h->host, '?'); if (!sp || (p && sp > p)) sp = p;
6 p = strchr(h->host, '#'); if (!sp || (p && sp > p)) sp = p;
7 if (!sp) {
8 - h->path = "";
9 + /* must be writable because of bb_get_last_path_component() */
10 + static char nullstr[] = "";
11 + h->path = nullstr;
12 } else if (*sp == '/') {
13 *sp = '\0';
14 h->path = sp + 1;
This page took 0.042685 seconds and 3 git commands to generate.