diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-02 14:34:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-02 14:34:53 +0000 |
commit | 387ce97c2830fd2551e665d4bcb698229dda0a11 (patch) | |
tree | 4f910e32ec037c65478a15a3d38b51ebfd789728 /strgen | |
parent | 143b8d1f675508975515ad7545c3d9f5e4a66885 (diff) | |
download | openttd-387ce97c2830fd2551e665d4bcb698229dda0a11.tar.xz |
(svn r4689) - Codechange: correct parameter order or calloc, and use the sizeof the variable rather than a struct
Diffstat (limited to 'strgen')
-rw-r--r-- | strgen/strgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |