gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better.


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] 11/11: json_dumpb() way better.
Date: Wed, 16 May 2018 10:42:06 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository twister.

commit 5ac6f8fd99df95071953c4c92947f4a28326cc39
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 16 10:29:29 2018 +0200

    json_dumpb() way better.
---
 src/twister/taler-twister-service.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/twister/taler-twister-service.c 
b/src/twister/taler-twister-service.c
index cbe58b7..ea26ad0 100644
--- a/src/twister/taler-twister-service.c
+++ b/src/twister/taler-twister-service.c
@@ -1259,10 +1259,12 @@ create_response (void *cls,
       flip_object (con,
                    tmp,
                    flip_path_ul);
-      /* No need to update 'io_len', as flipping a
-       * bit does not change the data size.  */
-      hr->io_buf = json_dumps (tmp,
-                               JSON_COMPACT);
+
+      json_dumpb (tmp,
+                  hr->io_buf,
+                  hr->io_len, /* Existing io_len is enough to accomodate this 
encoding.  */
+                  JSON_COMPACT);
+
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                   "Flipped (?) upload object (%s)\n",
                   hr->io_buf);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]