summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
1023static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *opt) 1023static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *opt)
1024{ 1024{
1025 int i; 1025 int i;
1026 char *buf[100]; 1026 char *buf;
1027 for (i = 0; i < ifd->n_options; i++) { 1027 for (i = 0; i < ifd->n_options; i++) {
1028 if (strcmp(ifd->option[i].name, opt) == 0) { 1028 if (strcmp(ifd->option[i].name, opt) == 0) {
1029 if (!(*exec) (ifd->option[i].value)) { 1029 if (!(*exec) (ifd->option[i].value)) {
@@ -1032,7 +1032,7 @@ static int execute_all(struct interface_defn_t *ifd, execfn *exec, const char *o
1032 } 1032 }
1033 } 1033 }
1034 1034
1035 bb_xasprintf(buf, "run-parts /etc/network/if-%s.d", opt); 1035 bb_xasprintf(&buf, "run-parts /etc/network/if-%s.d", opt);
1036 (*exec)(buf); 1036 (*exec)(buf);
1037 1037
1038 return (1); 1038 return (1);