projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40450b3
)
proto-shell: fix a typo in string length calculation
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 3 Oct 2011 00:41:20 +0000
(
02:41
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 3 Oct 2011 00:41:20 +0000
(
02:41
+0200)
proto-shell.c
patch
|
blob
|
history
diff --git
a/proto-shell.c
b/proto-shell.c
index 555004e6c9ffa74b3af21ca7ad0c3d5b335ad18a..7eeff2892f676dc82f6b3cc856f40c6211a775e5 100644
(file)
--- 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);