1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

(svn r4728) - Backport from trunk (r4689):

Codechange: correct parameter order or calloc, and use the sizeof
  the variable rather than a struct
This commit is contained in:
Darkvater
2006-05-03 21:35:10 +00:00
parent 2aba4c3354
commit 63a1bc7ee7

View File

@@ -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);