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:
Cyrill Gorcunov 2009-12-04 19:44:20 +03:00
parent 8896ad0c65
commit 416bd78bae

2
nasm.c
View file

@ -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 */