nasm.c: Tabs to spaces in copy_filename

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2013-02-15 12:22:59 +04:00
parent f831645ed8
commit 45aa118fdf

4
nasm.c
View File

@ -522,8 +522,8 @@ static void copy_filename(char *dst, const char *src)
size_t len = strlen(src);
if (len >= (size_t)FILENAME_MAX) {
nasm_error(ERR_FATAL | ERR_NOFILE, "file name too long");
return;
nasm_error(ERR_FATAL | ERR_NOFILE, "file name too long");
return;
}
strncpy(dst, src, FILENAME_MAX);
}