projects
/
oweals
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab4dc4
)
luci2: fix incorrect buffer length in luci2.opkg config_set call
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 5 Aug 2013 11:19:38 +0000
(13:19 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 5 Aug 2013 11:19:38 +0000
(13:19 +0200)
luci2.c
patch
|
blob
|
history
diff --git
a/luci2.c
b/luci2.c
index 001b33638d66c782e30411896233fe880470b922..b63123d2f675f01fcb1ed54d28bbd5390232ec08 100644
(file)
--- a/
luci2.c
+++ b/
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;