Unified · Split
| @@ -663,7 +663,7 @@ static int pe_write(struct pe_info *pe) · 662 unmodified lines | ||
| 663 | 663 | } |
| 664 | 664 | } |
| 665 | 665 | |
| 666 | − pstrcpy((char*)psh->Name, sizeof psh->Name, sh_name); | |
| 666 | + strncpy((char*)psh->Name, sh_name, sizeof psh->Name); | |
| 667 | 667 | |
| 668 | 668 | psh->Characteristics = pe_sec_flags[si->cls]; |
| 669 | 669 | psh->VirtualAddress = addr; |