IBM1130: Fix Coverity identified issue
This commit is contained in:
parent
5465707d77
commit
bfa200f2ed
1 changed files with 1 additions and 1 deletions
|
@ -1620,7 +1620,7 @@ static t_stat cr_attach (UNIT *uptr, CONST char *iptr)
|
||||||
*c++ = 0; /* term arg at space or closing quote */
|
*c++ = 0; /* term arg at space or closing quote */
|
||||||
|
|
||||||
list_arg[list_nargs] = list_save[list_nargs]; /* set pointer to permanent storage location */
|
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_arg[list_nargs]); /* store copy */
|
||||||
}
|
}
|
||||||
list_arg[list_nargs] = NULL; /* NULL terminate the end of the argument list */
|
list_arg[list_nargs] = NULL; /* NULL terminate the end of the argument list */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue