Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-12 12:39:05 +0400
committerEric Andersen <andersen@codepoet.org>2003-09-12 12:39:05 +0400
commiteb213bd2a2d8cff9f65e5b4dfca3966d30d01558 (patch)
tree6c8c31240096d33f3f6e4c669e06525db056153e
parent7f2935ba0ec606e4a2ba04158acd3b44a6cb5903 (diff)
As vodz just pointed out, I screwup up the call to bb_xasprintf!1_00_pre3
-rw-r--r--networking/ifupdown.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 3662421a6..367aafa05 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1023,7 +1023,7 @@ static int doit(char *str)
static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *opt)
{
int i;
- char *buf[100];
+ char *buf;
for (i = 0; i < ifd->n_options; i++) {
if (strcmp(ifd->option[i].name, opt) == 0) {
if (!(*exec) (ifd->option[i].value)) {
@@ -1032,7 +1032,7 @@ static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *o
}
}
- bb_xasprintf(buf, "run-parts /etc/network/if-%s.d", opt);
+ bb_xasprintf(&buf, "run-parts /etc/network/if-%s.d", opt);
(*exec)(buf);
return (1);