diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-blob.c')
-rw-r--r--source/ui-blob.c6
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-blob.c b/source/ui-blob.c
index 8f68d04..1088679 100644
--- a/source/ui-blob.c
+++ b/source/ui-blob.c
@@ -128,15 +128,15 @@ int cgit_print_file(char *path, const char *head, int file_only, int html_escape
buf[size] = '\0';
if (html_escape) {
// html_txt stops at a NUL, so a blob holding one is written
- // segment by segment with a replacement character standing in
- // for each NUL byte, rather than silently cut short.
+ // segment by segment with a question mark standing in for
+ // each NUL byte, rather than silently cut short.
const char *p = buf, *end = buf + size;
while (p < end) {
html_txt(p);
p += strlen(p);
while (p < end && !*p) {
- html("\xef\xbf\xbd");
+ html("?");
p++;
}
}