file: be consistent with string termination character
authorLuka Perkov <luka@openwrt.org>
Mon, 11 May 2015 21:28:19 +0000 (23:28 +0200)
committerJo-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

diff --git a/file.c b/file.c
index 4920f50..d983518 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);