Skip to content

Commit

Permalink
use another NUL symbol replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
blackav committed Oct 13, 2024
1 parent b8f34ab commit 509c032
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/json_serializers.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ json_serialize_file_content(
unsigned char *w_ptr = w_buf;
for (int i = 0; i < out_len; ++i) {
if (!out_buf[i]) {
*w_ptr++ = 0xef;
*w_ptr++ = 0xbf;
*w_ptr++ = 0xbd;
*w_ptr++ = 0xe2;
*w_ptr++ = 0x90;
*w_ptr++ = 0x80;
} else {
*w_ptr++ = out_buf[i];
}
Expand Down

0 comments on commit 509c032

Please sign in to comment.