diff options
| author | grischka <grischka> | 2013-01-31 11:29:45 +0100 |
|---|---|---|
| committer | grischka <grischka> | 2013-01-31 13:23:19 +0100 |
| commit | 2f6b8469cc27c0679460a2b70a35f8ba830281fc (patch) | |
| tree | e5d8d10c8666dbfc0b7df912d307588f4eef8056 /tccgen.c | |
| parent | 370547a550e73d91e95cac6145a7df7947025bb0 (diff) | |
| download | tinycc-2f6b8469cc27c0679460a2b70a35f8ba830281fc.tar.gz tinycc-2f6b8469cc27c0679460a2b70a35f8ba830281fc.tar.bz2 | |
safety: replace occurrences of strcpy by pstrcpy
Diffstat (limited to 'tccgen.c')
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
