procd: fix incorrect use of sizeof() in vsnprintf()
[openwrt.git] / package / system / opkg / patches / 011-old-config-location.patch
1 --- a/src/opkg-cl.c
2 +++ b/src/opkg-cl.c
3 @@ -207,6 +207,9 @@ args_parse(int argc, char *argv[])
4                 }
5         }
6  
7 +       if(!conf->conf_file && !conf->offline_root)
8 +               conf->conf_file = xstrdup("/etc/opkg.conf");
9 +
10         if (parse_err)
11                 return parse_err;
12         else