Unified · Split
| @@ -330,7 +330,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh · 329 unmodified lines | ||
| 330 | 330 | { |
| 331 | 331 | Section *sec; |
| 332 | 332 | |
| 333 | − sec = tcc_mallocz(sizeof(Section) + strlen(name)); | |
| 333 | + sec = tcc_mallocz(sizeof(Section) + strlen(name)+1); | |
| 334 | 334 | strcpy(sec->name, name); |
| 335 | 335 | sec->sh_type = sh_type; |
| 336 | 336 | sec->sh_flags = sh_flags; |