luci2: fix incorrect buffer length in luci2.opkg config_set call
This commit is contained in:
parent
2ab4dc45d1
commit
c2c39eeb30
1 changed files with 1 additions and 1 deletions
2
luci2.c
2
luci2.c
|
@ -1952,7 +1952,7 @@ rpc_luci2_opkg_config_set(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
return rpc_errno_status();
|
||||
|
||||
fwrite(blobmsg_data(tb[RPC_D_DATA]),
|
||||
blobmsg_data_len(tb[RPC_D_DATA]), 1, f);
|
||||
blobmsg_data_len(tb[RPC_D_DATA]) - 1, 1, f);
|
||||
|
||||
fclose(f);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue