fix typo in UnistallDev
[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.039299 seconds and 5 git commands to generate.