safety: replace occurrences of strcpy by pstrcpy

This commit is contained in:
grischka
2013-01-31 11:29:45 +01:00
parent 370547a550
commit 2f6b8469cc
4 changed files with 11 additions and 21 deletions

View File

@ -5580,7 +5580,7 @@ ST_FUNC void gen_inline_functions(void)
str = fn->token_str;
fn->sym = NULL;
if (file)
strcpy(file->filename, fn->filename);
pstrcpy(file->filename, sizeof file->filename, fn->filename);
sym->r = VT_SYM | VT_CONST;
sym->type.t &= ~VT_INLINE;