diff --git a/libtcc.c b/libtcc.c index 9f486f32..601999ea 100644 --- a/libtcc.c +++ b/libtcc.c @@ -330,7 +330,7 @@ ST_FUNC Section *new_section(TCCState *s1, const char *name, int sh_type, int sh { Section *sec; - sec = tcc_mallocz(sizeof(Section) + strlen(name)+1); + sec = tcc_mallocz(sizeof(Section) + strlen(name)); strcpy(sec->name, name); sec->sh_type = sh_type; sec->sh_flags = sh_flags;