Commit 5961b65f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Fix a flexelint nit

parent 4601ddcd
......@@ -70,7 +70,7 @@ vcc_AddSymbol(struct vcc *tl, const char *nb, int l, enum symkind kind)
}
ALLOC_OBJ(sym, SYMBOL_MAGIC);
AN(sym);
sym->name = malloc(l + 1);
sym->name = malloc(l + 1L);
AN(sym->name);
memcpy(sym->name, nb, l);
sym->name[l] = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment