From 78ebfb418b1c325e414eea59f4ce87bb474b4aa8 Mon Sep 17 00:00:00 2001 From: Jim Fehlinger Date: Thu, 1 Dec 2022 16:42:20 -0500 Subject: [PATCH] IBM1130: cr_attach() [ibm1130_cr.c]: replace bad pointer --- Ibm1130/ibm1130_cr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ibm1130/ibm1130_cr.c b/Ibm1130/ibm1130_cr.c index b07907aa..f1a188ac 100644 --- a/Ibm1130/ibm1130_cr.c +++ b/Ibm1130/ibm1130_cr.c @@ -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 */