diff -r bbaaba548c1c -r 0f51b47cb983 train_gui.c --- 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