[quake3-commits] r1825 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jan 27 07:34:58 EST 2011


Author: thilo
Date: 2011-01-27 07:34:58 -0500 (Thu, 27 Jan 2011)
New Revision: 1825

Modified:
   trunk/code/qcommon/vm_x86_64_assembler.c
Log:
well, shit.


Modified: trunk/code/qcommon/vm_x86_64_assembler.c
===================================================================
--- trunk/code/qcommon/vm_x86_64_assembler.c	2011-01-27 11:13:39 UTC (rev 1824)
+++ trunk/code/qcommon/vm_x86_64_assembler.c	2011-01-27 12:34:58 UTC (rev 1825)
@@ -246,7 +246,7 @@
 	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);
 	



More information about the quake3-commits mailing list