file: be consistent with string termination character
Signed-off-by: Luka Perkov <luka@openwrt.org>
This commit is contained in:
parent
4db5df8a96
commit
410802e106
1 changed files with 1 additions and 1 deletions
2
file.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue