aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index a01aae6..3f22b39 100644
--- a/src/json.c
+++ b/src/json.c
@@ -75,7 +75,7 @@ int json_send(struct json_object *obj, int fd)
return -1;
struct buf *buf = NULL;
- ret = buf_pack_strings(&buf, 1, &str);
+ ret = buf_create_from_string(&buf, str);
free((char *)str);
if (ret < 0)
return ret;