From 2e792857e9f26078b65d969d9ad2a1c27326b330 Mon Sep 17 00:00:00 2001 From: Aki Van Ness Date: Thu, 10 Mar 2022 11:03:51 -0500 Subject: [PATCH] pass jny: fixed the backslash escape for strings --- backends/jny/jny.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backends/jny/jny.cc b/backends/jny/jny.cc index 763d186ac..8025d42d2 100644 --- a/backends/jny/jny.cc +++ b/backends/jny/jny.cc @@ -55,8 +55,7 @@ struct JnyWriter for(; itr != str.end(); ++itr) { switch (*itr) { case '\\': { - newstr += *itr++; - newstr += *itr; + newstr += "\\\\"; break; } case '\n': { newstr += "\\n"; -- 2.30.2