diff options
| author | Roy <roytam@gmail.com> | 2013-06-06 09:26:31 +0800 |
|---|---|---|
| committer | Roy <roytam@gmail.com> | 2013-06-06 09:26:31 +0800 |
| commit | 807dc7c8de2dcb0365c15b9c2a43ad0c195513dd (patch) | |
| tree | eace1c7b02cb04c91f9e61516b0f6d383a05ad19 /tccpe.c | |
| parent | d0c4138ac2abd83096cc5b882aa02939c9bfa91a (diff) | |
| download | tinycc-807dc7c8de2dcb0365c15b9c2a43ad0c195513dd.tar.gz tinycc-807dc7c8de2dcb0365c15b9c2a43ad0c195513dd.tar.bz2 | |
tccpe: pstrcpy() will truncate .stabstr section name, use strncpy() instead.
Diffstat (limited to 'tccpe.c')
| -rw-r--r-- | tccpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -663,7 +663,7 @@ static int pe_write(struct pe_info *pe) } } - pstrcpy((char*)psh->Name, sizeof psh->Name, sh_name); + strncpy((char*)psh->Name, sh_name, sizeof psh->Name); psh->Characteristics = pe_sec_flags[si->cls]; psh->VirtualAddress = addr; |
