offset2 += write_data (outfile, §ion_descriptor_short, sizeof (section_descriptor_short));
memset (§ion_descriptor_short, 0, sizeof (section_descriptor_short));
- strcpy ((char *) section_descriptor_short.z.SectionName, ".idata$2");
+ memcpy ((char *) section_descriptor_short.z.SectionName, ".idata$2", 8);
integer_to_array (0xC0000040, section_descriptor_short.b, 4);
integer_to_array (2, section_descriptor_short.c, 4);
offset2 += write_data (outfile, §ion_descriptor_short, sizeof (section_descriptor_short));
memset (§ion_descriptor_short, 0, sizeof (section_descriptor_short));
- strcpy ((char *) section_descriptor_short.z.SectionName, ".idata$6");
+ memcpy ((char *) section_descriptor_short.z.SectionName, ".idata$6", 8);
integer_to_array (0, section_descriptor_short.b, 4);
integer_to_array (3, section_descriptor_short.c, 4);
offset2 += write_data (outfile, §ion_descriptor_short, sizeof (section_descriptor_short));
memset (§ion_descriptor_short, 0, sizeof (section_descriptor_short));
- strcpy ((char *) section_descriptor_short.z.SectionName, ".idata$4");
+ memcpy ((char *) section_descriptor_short.z.SectionName, ".idata$4", 8);
integer_to_array (0xC0000040, section_descriptor_short.b, 4);
integer_to_array (0, section_descriptor_short.c, 4);
offset2 += write_data (outfile, §ion_descriptor_short, sizeof (section_descriptor_short));
memset (§ion_descriptor_short, 0, sizeof (section_descriptor_short));
- strcpy ((char *) section_descriptor_short.z.SectionName, ".idata$5");
+ memcpy ((char *) section_descriptor_short.z.SectionName, ".idata$5", 8);
integer_to_array (0xC0000040, section_descriptor_short.b, 4);
integer_to_array (0, section_descriptor_short.c, 4);