train_gui.c
changeset 4912 0f51b47cb983
parent 4898 e3962fe14ef8
child 4930 708801d486c6
--- a/train_gui.c	Sat Oct 21 23:08:17 2006 +0000
+++ b/train_gui.c	Sat Oct 21 23:31:34 2006 +0000
@@ -135,13 +135,13 @@
 	char buf1[64];
 	int r;
 
-	GetString(buf1, GetCustomEngineName(va));
+	GetString(buf1, GetCustomEngineName(va), lastof(buf1));
 
 	if (vb != _last_engine) {
 		_last_engine = vb;
 		_bufcache[0] = '\0';
 
-		GetString(_bufcache, GetCustomEngineName(vb));
+		GetString(_bufcache, GetCustomEngineName(vb), lastof(_bufcache));
 	}
 
 	r =  strcasecmp(buf1, _bufcache); // sort by name