summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-05-11 23:28:19 +0200
committerJo-Philipp Wich <jow@openwrt.org>2015-07-15 00:21:39 +0200
commit410802e106184d15805c5a66830d3072bd58ce30 (patch)
tree60999472b477a5dc79ef218313d08740b0846b40
parent4db5df8a967193b35d9ab4dc3055660f58e0f950 (diff)
downloadrpcd-410802e106184d15805c5a66830d3072bd58ce30.tar.gz
file: be consistent with string termination character
Signed-off-by: Luka Perkov <luka@openwrt.org>
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 4920f50..d983518 100644
--- 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);