projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9b361b
)
wireless: fix alignment of wireless config structs - fixes segfaults on arm
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 29 Dec 2013 02:27:36 +0000
(
03:27
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 29 Dec 2013 02:27:36 +0000
(
03:27
+0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
wireless.c
patch
|
blob
|
history
diff --git
a/wireless.c
b/wireless.c
index 0fd209e57867a325bb7967348a050bf9033f984e..531311910411327dbe05f7d7ea6928a5cdeb18ae 100644
(file)
--- a/
wireless.c
+++ b/
wireless.c
@@
-462,10
+462,10
@@
wireless_add_handler(const char *script, const char *name, json_object *obj)
return;
drv = calloc_a(sizeof(*drv),
- &name_str, strlen(name) + 1,
- &script_str, strlen(script) + 1,
&dev_config, sizeof(*dev_config) + sizeof(void *),
- &iface_config, sizeof(*iface_config) + sizeof(void *));
+ &iface_config, sizeof(*iface_config) + sizeof(void *),
+ &name_str, strlen(name) + 1,
+ &script_str, strlen(script) + 1);
drv->name = strcpy(name_str, name);
drv->script = strcpy(script_str, script);