well, shit.

This commit is contained in:
Thilo Schulz 2011-01-27 12:34:58 +00:00
parent 92495a70bc
commit d1c0401c73
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ static void hash_add_label(const char* label, unsigned address)
i %= sizeof(labelhash)/sizeof(labelhash[0]);
h = malloc(sizeof(struct hashentry));
labellen = strlen(label);
labellen = strlen(label) + 1;
h->label = malloc(labellen);
Com_sprintf(h->label, labellen, "%s", label);