projects
/
oweals
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4db5df8
)
file: be consistent with string termination character
author
Luka Perkov
<luka@openwrt.org>
Mon, 11 May 2015 21:28:19 +0000
(23:28 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 14 Jul 2015 22:21:39 +0000
(
00:21
+0200)
Signed-off-by: Luka Perkov <luka@openwrt.org>
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 4920f50b546392498e29e9393a29ed975bc8c921..d9835180529fd6065ec3ad5f9a2f3e9c6e6e8cd6 100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-247,7
+247,7
@@
rpc_file_read(struct ubus_context *ctx, struct ubus_object *obj,
}
}
- *(wbuf + len) =
0
;
+ *(wbuf + len) =
'\0'
;
blobmsg_add_string_buffer(&buf);
ubus_send_reply(ctx, req, buf.head);