summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--wireless.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wireless.c b/wireless.c
index 0fd209e..5313119 100644
--- 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);