projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f2935b
)
As vodz just pointed out, I screwup up the call to bb_xasprintf!
1_00_pre3
author
Eric Andersen
<andersen@codepoet.org>
Fri, 12 Sep 2003 08:39:05 +0000
(08:39 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Fri, 12 Sep 2003 08:39:05 +0000
(08:39 -0000)
networking/ifupdown.c
patch
|
blob
|
history
diff --git
a/networking/ifupdown.c
b/networking/ifupdown.c
index 3662421a672601b75671d3bf6c05915eab6ba487..367aafa059bd6be93b3813bb6ec5ce15368c471b 100644
(file)
--- 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);