mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2025-12-06 02:40:26 -08:00
dpp: ensure null terminating character
putting \0 at the end of the string does not cut it.
This commit is contained in:
parent
fa24f95f7b
commit
3891bcc76b
1 changed files with 2 additions and 1 deletions
|
|
@ -361,7 +361,8 @@ read_string()
|
|||
c = readc();
|
||||
pushc(c);
|
||||
} while (c != end);
|
||||
pushstr(", -1)\0");
|
||||
pushstr(", -1)");
|
||||
pushc(0);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue