diff options
author | Luka Perkov <luka@openwrt.org> | 2015-05-11 23:28:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-07-15 00:21:39 +0200 |
commit | 410802e106184d15805c5a66830d3072bd58ce30 (patch) | |
tree | 60999472b477a5dc79ef218313d08740b0846b40 | |
parent | 4db5df8a967193b35d9ab4dc3055660f58e0f950 (diff) | |
download | rpcd-410802e106184d15805c5a66830d3072bd58ce30.tar.gz |
file: be consistent with string termination character
Signed-off-by: Luka Perkov <luka@openwrt.org>
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |