file: be consistent with string termination character

Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
Luka Perkov 2015-05-11 23:28:19 +02:00 committed by Jo-Philipp Wich
parent 4db5df8a96
commit 410802e106

2
file.c
View file

@ -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);