src/music/extmidi.cpp
changeset 10310 ca2eb5811a07
parent 9111 48ce04029fe4
--- a/src/music/extmidi.cpp	Sun Nov 02 11:15:26 2008 +0000
+++ b/src/music/extmidi.cpp	Sun Nov 02 11:20:15 2008 +0000
@@ -34,7 +34,7 @@
 
 void MusicDriver_ExtMidi::PlaySong(const char* filename)
 {
-	ttd_strlcpy(this->song, filename, lengthof(this->song));
+	strecpy(this->song, filename, lastof(this->song));
 	this->DoStop();
 }