1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-16 00:04:59 +00:00

Correct off-by-one error copying C string to Lisp string

modified:   src/uutils.c
This commit is contained in:
Nick Briggs 2018-03-23 13:24:58 -07:00
parent cd940e4013
commit 367deb7547

View File

@ -130,7 +130,7 @@ int c_string_to_lisp_string(char *C, LispPTR Lisp) {
{
register int i;
register char *dp;
for (i = 0, dp = C; i <= length + 1; i++) {
for (i = 0, dp = C; i < length + 1; i++) {
int ch = *dp++;
#ifdef DOS
if (ch == '\\') dp++; /* skip 2nd \ in \\ in C strings */