Fix bug in JsonEncodeString() where characters get printed to stdout.

Thanks @costava:matrix.org for pointing this one out.
This commit is contained in:
Jordan Bancino 2022-09-06 20:53:30 -04:00
parent c607ba05a9
commit 485941e8a8

View file

@ -372,7 +372,7 @@ JsonEncodeString(const char *str, FILE * out)
*/
if (c <= 0x001F)
{
printf("\\u%04x", c);
fprintf(out, "\\u%04x", c);
}
else
{