From 9f846671ad02b2616ecc4b9f718688222247bc8f Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Mon, 28 Jan 2013 16:25:35 -0800 Subject: [PATCH] Added \f to the list of recognized escape sequences --- json_tokener.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/json_tokener.c b/json_tokener.c index 1c82484..6aa22d3 100644 --- a/json_tokener.c +++ b/json_tokener.c @@ -417,10 +417,12 @@ struct json_object* json_tokener_parse_ex(struct json_tokener *tok, case 'n': case 'r': case 't': + case 'f': if(c == 'b') printbuf_memappend_fast(tok->pb, "\b", 1); else if(c == 'n') printbuf_memappend_fast(tok->pb, "\n", 1); else if(c == 'r') printbuf_memappend_fast(tok->pb, "\r", 1); else if(c == 't') printbuf_memappend_fast(tok->pb, "\t", 1); + else if(c == 'f') printbuf_memappend_fast(tok->pb, "\f", 1); state = saved_state; break; case 'u':