From 5f3b7b10a37e36c3de078829050731dbe0223363 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 2 May 2006 14:34:53 +0000 Subject: (svn r4689) - Codechange: correct parameter order or calloc, and use the sizeof the variable rather than a struct --- strgen/strgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strgen/strgen.c') diff --git a/strgen/strgen.c b/strgen/strgen.c index 58400a3f9..f37121108 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -795,7 +795,7 @@ static void HandleString(char *str, bool master) } // Allocate a new LangString - ent = calloc(sizeof(LangString), 1); + ent = calloc(1, sizeof(*ent)); _strings[_next_string_id] = ent; ent->index = _next_string_id++; ent->name = strdup(str); -- cgit v1.2.3-70-g09d2