projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proto-shell: fix a typo in string length calculation
[project/netifd.git]
/
proto-shell.c
diff --git
a/proto-shell.c
b/proto-shell.c
index
555004e
..
7eeff28
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);