From d1c0401c73437a8d8d1ec85de6cc2b4c71893a6b Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 27 Jan 2011 12:34:58 +0000 Subject: [PATCH] well, shit. --- code/qcommon/vm_x86_64_assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/vm_x86_64_assembler.c b/code/qcommon/vm_x86_64_assembler.c index 0ae4f1c1..5aaea1d8 100644 --- a/code/qcommon/vm_x86_64_assembler.c +++ b/code/qcommon/vm_x86_64_assembler.c @@ -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);