CVS commit by waba: Proper string handling. Patch by Peter Hawkins M +3 -2 player.cc 1.43 --- kdelibs/libkmid/player.cc:1.42 Sat Oct 5 12:29:16 2002 @@ -20,7 +20,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - $Id: player.cc,v 1.42 2002/10/05 10:29:16 garbanzo Exp $ + $Id: player.cc,v 1.43 2002/12/07 16:39:52 waba Exp $ Send comments and bug fixes to Antonio Larrosa @@ -372,7 +372,8 @@ { lasttexttime=pspev->absmilliseconds; lasttexttype=pspev->type; - strcpy(lasttext,pspev->text); + strncpy(lasttext, pspev->text, 1024); + lasttext[1023] = 0; #endif pspev->next=new SpecialEvent; #ifdef PLAYERDEBUG