mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
nasm.c: Tabs to spaces in copy_filename
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
f831645ed8
commit
45aa118fdf
4
nasm.c
4
nasm.c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user