From: Cyrill Gorcunov Date: Fri, 4 Dec 2009 16:44:20 +0000 (+0300) Subject: nasm.c: Use copy_filename to set error message file X-Git-Tag: nasm-2.11.05~751 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=416bd78bae87641b3da48349c55d9e7f3b193ff4;p=platform%2Fupstream%2Fnasm.git 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 --- 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 */