fix syntax printing to avoid nul char

svn: r16014
This commit is contained in:
Matthew Flatt 2009-09-14 22:53:07 +00:00
parent f6b9265f77
commit 762b4e4266

View File

@ -2362,7 +2362,7 @@ print(Scheme_Object *obj, int notdisplay, int compact, Scheme_Hash_Table *ht,
sprintf(quick_buffer, ":%ld", stx->srcloc->pos);
print_utf8_string(pp, quick_buffer, 0, -1);
} else
print_utf8_string(pp, "#<syntax", 0, 9);
print_utf8_string(pp, "#<syntax", 0, 8);
if (pp->print_syntax) {
long slen;
char *str;