aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormingodad <mingodad@gmail.com>2014-03-28 20:25:39 +0000
committermingodad <mingodad@gmail.com>2014-03-28 20:25:39 +0000
commit700c2f769bd5e49a2a7e93119a6ad51d704d857d (patch)
tree4e50cf0e79303a0942e360967175acf1678a6717
parent0ba7c8670c0ed178b857245609f5030d63ef2191 (diff)
downloadtinycc-700c2f769bd5e49a2a7e93119a6ad51d704d857d.tar.gz
tinycc-700c2f769bd5e49a2a7e93119a6ad51d704d857d.tar.bz2
Remove the fix from my last commit, it was pointed by scan-build and is a false positive, thanks to grischka for pointing it.
-rw-r--r--libtcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtcc.c b/libtcc.c
index 9f486f3..601999e 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;