summaryrefslogtreecommitdiff
path: root/snac.c
diff options
context:
space:
mode:
authorGravatar default2022-09-25 09:47:36 +0200
committerGravatar default2022-09-25 09:47:36 +0200
commit5f4379d434140505acc7205715fb5b729acc3b5a (patch)
treeb96fc8dd7ed2d75e8f8f37ef31b0c54712c4d5fc /snac.c
parentSome fixes to timeline_add(). (diff)
downloadsnac2-5f4379d434140505acc7205715fb5b729acc3b5a.tar.gz
snac2-5f4379d434140505acc7205715fb5b729acc3b5a.tar.xz
snac2-5f4379d434140505acc7205715fb5b729acc3b5a.zip
Fixed bug in srv_archive().
Diffstat (limited to 'snac.c')
-rw-r--r--snac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/snac.c b/snac.c
index f5e23bc..ccf54f8 100644
--- a/snac.c
+++ b/snac.c
@@ -198,7 +198,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size,
198 body_fn = xs_fmt("%s/body.json", dir); 198 body_fn = xs_fmt("%s/body.json", dir);
199 199
200 if ((f = fopen(body_fn, "w")) != NULL) { 200 if ((f = fopen(body_fn, "w")) != NULL) {
201 xs *v1 = xs_json_loads(payload); 201 xs *v1 = xs_json_loads(body);
202 xs *j1 = xs_json_dumps_pp(v1, 4); 202 xs *j1 = xs_json_dumps_pp(v1, 4);
203 203
204 if (j1 != NULL) 204 if (j1 != NULL)