summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2009-12-04 19:44:20 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2009-12-04 19:44:20 +0300
commit416bd78bae87641b3da48349c55d9e7f3b193ff4 (patch)
treebb58cd3adc4d08fee93bd0a682138f5237cf478e /nasm.c
parent8896ad0c65ee1bd9ea5dac9fa03df65335db6ef0 (diff)
downloadnasm-416bd78bae87641b3da48349c55d9e7f3b193ff4.tar.gz
nasm-416bd78bae87641b3da48349c55d9e7f3b193ff4.tar.bz2
nasm-416bd78bae87641b3da48349c55d9e7f3b193ff4.zip
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>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasm.c b/nasm.c
index ac2adde..28a6086 100644
--- a/nasm.c
+++ b/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 */