]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix json unescape.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Oct 2013 16:03:10 +0000 (17:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Oct 2013 16:03:10 +0000 (17:03 +0100)
src/rcl/rcl_util.c

index a2cb444ea2e27563c7c7a616333c9d2c1bd26b98..c351fa85915ab64bea5b5101fd703ae3e0ba65dc 100644 (file)
@@ -169,6 +169,7 @@ rspamd_cl_unescape_json_string (gchar *str)
                        *t++ = *h++;
                }
        }
+       *t = '\0';
 }
 
 rspamd_cl_object_t*