summaryrefslogtreecommitdiff
path: root/strgen
diff options
context:
space:
mode:
Diffstat (limited to 'strgen')
-rw-r--r--strgen/strgen.c2
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);