mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-31 04:50:42 +00:00
well, shit.
This commit is contained in:
parent
92495a70bc
commit
d1c0401c73
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ static void hash_add_label(const char* label, unsigned address)
|
||||||
i %= sizeof(labelhash)/sizeof(labelhash[0]);
|
i %= sizeof(labelhash)/sizeof(labelhash[0]);
|
||||||
h = malloc(sizeof(struct hashentry));
|
h = malloc(sizeof(struct hashentry));
|
||||||
|
|
||||||
labellen = strlen(label);
|
labellen = strlen(label) + 1;
|
||||||
h->label = malloc(labellen);
|
h->label = malloc(labellen);
|
||||||
Com_sprintf(h->label, labellen, "%s", label);
|
Com_sprintf(h->label, labellen, "%s", label);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue