src/stringtable.cc

changeset 81
071715c17296
parent 75
bf8c57437231
child 85
264a61e9eba0
--- a/src/stringtable.cc	Fri Jan 17 22:57:40 2014 +0200
+++ b/src/stringtable.cc	Sat Jan 18 02:11:45 2014 +0200
@@ -67,9 +67,8 @@
 		error ("too many strings!\n");
 
 	// Now, dump the string into the slot
-	g_string_table[idx] = a;
-
-	return idx;
+	g_string_table.push_back (a);
+	return (g_string_table.size() - 1);
 }
 
 // ============================================================================

mercurial