From 63a1bc7ee7b9b3e70c910746cedd11a2a86830e6 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 3 May 2006 21:35:10 +0000 Subject: [PATCH] (svn r4728) - Backport from trunk (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(-) diff --git a/strgen/strgen.c b/strgen/strgen.c index 8f6432b306..e095d23bc7 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -805,7 +805,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);