station_gui.c
changeset 4912 0f51b47cb983
parent 4896 f86350aaaaa5
child 4938 0447845fd1b3
--- a/station_gui.c	Sat Oct 21 23:08:17 2006 +0000
+++ b/station_gui.c	Sat Oct 21 23:31:34 2006 +0000
@@ -81,12 +81,12 @@
 	int r;
 
 	SetDParam(0, st1->index);
-	GetString(buf1, STR_STATION);
+	GetString(buf1, STR_STATION, lastof(buf1));
 
 	if (st2 != _last_station) {
 		_last_station = st2;
 		SetDParam(0, st2->index);
-		GetString(_bufcache, STR_STATION);
+		GetString(_bufcache, STR_STATION, lastof(_bufcache));
 	}
 
 	r =  strcmp(buf1, _bufcache); // sort by name