[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/libkmid
From: Waldo Bastian <bastian () kde ! org>
Date: 2002-12-07 16:39:52
[Download RAW message or body]
CVS commit by waba:
Proper string handling. Patch by Peter Hawkins <peter@hawkins.emu.id.au>
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 <larrosa@kde.org>
@@ -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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic