1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-13 23:37:13 +00:00

IBM1130: cr_attach() [ibm1130_cr.c]: replace bad pointer

This commit is contained in:
Jim Fehlinger 2022-12-01 16:42:20 -05:00 committed by Paul Koning
parent 92e40cb1c8
commit 78ebfb418b

View File

@ -1620,7 +1620,7 @@ static t_stat cr_attach (UNIT *uptr, CONST char *iptr)
*c++ = 0; /* term arg at space or closing quote */
list_arg[list_nargs] = list_save[list_nargs]; /* set pointer to permanent storage location */
strlcpy(list_arg[list_nargs], arg, sizeof *list_arg[list_nargs]); /* store copy */
strlcpy(list_arg[list_nargs], arg, sizeof list_save[list_nargs]); /* store copy */
}
list_arg[list_nargs] = NULL; /* NULL terminate the end of the argument list */