aboutsummaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-01-27 15:29:55 +0100
committerFlorian Dold <florian@dold.me>2022-01-27 15:29:55 +0100
commit32f1276b8c9cdc65f6873b8dc8d86240f25c8907 (patch)
treeb46d620cb9b133595509bafdf73b4e11150d42b8 /src/json
parent8684a9bfea9223808e33edca9f91b8bd76379fd0 (diff)
fix RFC 8785 JSON normalization
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/json/json.c b/src/json/json.c
index 705cfe92b..bf3b2a0e7 100644
--- a/src/json/json.c
+++ b/src/json/json.c
@@ -78,27 +78,27 @@ lowdump (struct GNUNET_Buffer *buf,
{
case 0x8:
GNUNET_buffer_write (buf,
- "\b",
+ "\\b",
2);
break;
case 0x9:
GNUNET_buffer_write (buf,
- "\t",
+ "\\t",
2);
break;
case 0xA:
GNUNET_buffer_write (buf,
- "\n",
+ "\\n",
2);
break;
case 0xC:
GNUNET_buffer_write (buf,
- "\f",
+ "\\f",
2);
break;
case 0xD:
GNUNET_buffer_write (buf,
- "\r",
+ "\\r",
2);
break;
default: