From: Luka Perkov Date: Mon, 11 May 2015 21:28:19 +0000 (+0200) Subject: file: be consistent with string termination character X-Git-Url: http://git.archive.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=410802e106184d15805c5a66830d3072bd58ce30 file: be consistent with string termination character Signed-off-by: Luka Perkov --- 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);