Allow NUL characters in strings (#1405)

This commit is contained in:
Sylvie authored and GitHub committed 2024-06-18 14:26:18 -04:00
1 parent 9cc595b2cc
commit 623c3f662c
15 files changed
+91 -37

No files matched your search

+3
View File
@@ -36,6 +36,9 @@ char const *printChar(int c) {
case '\t':
buf[2] = 't';
break;
case '\0':
buf[2] = '0';
break;
default: // Print as hex
buf[0] = '0';