netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] json: fix backslash escape typo in jsonw_puts
@ 2019-07-18  1:15 Ivan Delalande
  2019-07-19 17:54 ` Stephen Hemminger
  0 siblings, 1 reply; 2+ messages in thread
From: Ivan Delalande @ 2019-07-18  1:15 UTC (permalink / raw)
  To: Stephen Hemminger, David Ahern; +Cc: netdev

Fixes: fcc16c22 ("provide common json output formatter")
Signed-off-by: Ivan Delalande <colona@arista.com>
---
 lib/json_writer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/json_writer.c b/lib/json_writer.c
index 5004c181..88c5eb88 100644
--- a/lib/json_writer.c
+++ b/lib/json_writer.c
@@ -75,7 +75,7 @@ static void jsonw_puts(json_writer_t *self, const char *str)
 			fputs("\\b", self->out);
 			break;
 		case '\\':
-			fputs("\\n", self->out);
+			fputs("\\\\", self->out);
 			break;
 		case '"':
 			fputs("\\\"", self->out);
-- 
2.22.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH iproute2] json: fix backslash escape typo in jsonw_puts
  2019-07-18  1:15 [PATCH iproute2] json: fix backslash escape typo in jsonw_puts Ivan Delalande
@ 2019-07-19 17:54 ` Stephen Hemminger
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Hemminger @ 2019-07-19 17:54 UTC (permalink / raw)
  To: Ivan Delalande; +Cc: David Ahern, netdev

On Wed, 17 Jul 2019 18:15:31 -0700
Ivan Delalande <colona@arista.com> wrote:

> Fixes: fcc16c22 ("provide common json output formatter")
> Signed-off-by: Ivan Delalande <colona@arista.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-19 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-18  1:15 [PATCH iproute2] json: fix backslash escape typo in jsonw_puts Ivan Delalande
2019-07-19 17:54 ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).