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:
parent
cd940e4013
commit
367deb7547
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user