summaryrefslogtreecommitdiffhomepage
path: root/proto-shell.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-03 02:41:20 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-03 02:41:20 +0200
commit958012387b5bd493ea5fdabe815e9f4fd4e55dc5 (patch)
treed8c4b2566909f50d7f09d3524b4b76ed574bf610 /proto-shell.c
parent40450b303077d925339d50395ecf79629ff0ba72 (diff)
proto-shell: fix a typo in string length calculation
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 555004e..7eeff28 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -408,7 +408,7 @@ proto_shell_parse_config(struct config_param_list *config, json_object *obj)
if (attrs[i].type > BLOBMSG_TYPE_LAST)
goto error;
- str_len += strlen(attrs[i].name + 1);
+ str_len += strlen(attrs[i].name) + 1;
}
str_buf = malloc(str_len);