projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8896ad0
)
nasm.c: Use copy_filename to set error message file
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Fri, 4 Dec 2009 16:44:20 +0000
(19:44 +0300)
committer
Cyrill Gorcunov
<gorcunov@gmail.com>
Fri, 4 Dec 2009 16:44:20 +0000
(19:44 +0300)
To prevent errname buffer overwrite we should
use copy_filename instead of strcpy.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
nasm.c
patch
|
blob
|
history
diff --git
a/nasm.c
b/nasm.c
index
ac2adde
..
28a6086
100644
(file)
--- 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 */