diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-12-29 03:27:36 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-12-29 03:27:36 +0100 |
commit | 7d79d0a8aa5a5b4c1ed987af119356438d98fe7b (patch) | |
tree | 6b6a9aaf3ceeef1d793c865742fb92def38612c4 /wireless.c | |
parent | a9b361becf7b8668247602403f870ad9503fd8e9 (diff) |
wireless: fix alignment of wireless config structs - fixes segfaults on arm
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'wireless.c')
-rw-r--r-- | wireless.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |