Fixes (string escaping not fully working)
h3rald h3rald@h3rald.com
Thu, 02 Jan 2025 21:35:02 +0000
1 files changed,
3 insertions(+),
7 deletions(-)
jump to
M
src/utils.c
→
src/utils.c
@@ -325,6 +325,9 @@ {
src++; switch (*src) { + case '\\': + *dst++ = '\\'; + break; case 'n': *dst++ = '\n'; break;@@ -346,13 +349,6 @@ break;
case '\"': *dst++ = '\"'; break; - case '\\': - *dst++ = '\\'; - if (*(src + 2)) - { - *dst++ = *(src + 2); - src++; - } default: *dst++ = '\\'; *dst++ = *src;