[Plib-cvs] plib/src/sl sl.h,1.16,1.17
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-15 00:39:06
|
Update of /cvsroot/plib/plib/src/sl In directory usw-pr-cvs1:/tmp/cvs-serv15491 Modified Files: sl.h Log Message: Replaced an instance of new + strcpy () with ulStrDup () Index: sl.h =================================================================== RCS file: /cvsroot/plib/plib/src/sl/sl.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- sl.h 2 Sep 2002 06:05:47 -0000 1.16 +++ sl.h 15 Sep 2002 00:39:03 -0000 1.17 @@ -254,8 +254,7 @@ void setComment ( const char *nc ) { delete [] comment ; - comment = new char [ strlen ( nc ) + 1 ] ; - strcpy ( comment, nc ) ; + comment = ulStrDup ( nc ) ; } Uchar *getBuffer () const { return buffer ; } |