[experimental-ims] 5961b65 Fix a flexelint nit

Poul-Henning Kamp phk at FreeBSD.org
Thu Dec 18 10:27:44 CET 2014


commit 5961b65fa57fb8eb02ac6630beec05f6a5fe28b1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Apr 23 07:10:57 2012 +0000

    Fix a flexelint nit

diff --git a/lib/libvcl/vcc_symb.c b/lib/libvcl/vcc_symb.c
index 222680f..4066e56 100644
--- a/lib/libvcl/vcc_symb.c
+++ b/lib/libvcl/vcc_symb.c
@@ -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';



More information about the varnish-commit mailing list