nasm.c: Use copy_filename to set error message file
To prevent errname buffer overwrite we should use copy_filename instead of strcpy. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
8896ad0c65
commit
416bd78bae
1 changed files with 1 additions and 1 deletions
2
nasm.c
2
nasm.c
|
@ -722,7 +722,7 @@ static bool process_arg(char *p, char *q)
|
|||
break;
|
||||
|
||||
case 'Z': /* error messages file */
|
||||
strcpy(errname, param);
|
||||
copy_filename(errname, param);
|
||||
break;
|
||||
|
||||
case 'F': /* specify debug format */
|
||||
|
|
Loading…
Reference in a new issue