Skip to content

Commit

Permalink
Don't attempt to escape null characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Aug 7, 2024
1 parent bd74be8 commit 006516e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/variables.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int escape_json_string(char *dest, int dl, char *src, int sl) {
unsigned char c = (unsigned char)src[i];
if (c >= 32)
dest[j++] = src[i];
else
else if (c > 0)
strlcatf(dest, sl, j, "%%x%02X", c);
}
dest[j++] = '"';
Expand Down

0 comments on commit 006516e

Please sign in to comment.