[Plib-cvs] plib/src/util ulRTTI.cxx,1.4,1.5
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-09-15 01:02:22
|
Update of /cvsroot/plib/plib/src/util In directory usw-pr-cvs1:/tmp/cvs-serv20004 Modified Files: ulRTTI.cxx Log Message: Replaced an instance of 'new' + strcpy () with ulStrDup () Index: ulRTTI.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ulRTTI.cxx,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- ulRTTI.cxx 2 Sep 2002 06:05:49 -0000 1.4 +++ ulRTTI.cxx 15 Sep 2002 01:02:19 -0000 1.5 @@ -36,9 +36,7 @@ void* (*f1)(int,void*),void* (*f2)() ) { /* Create default ulRTTITypeinfo */ - int name_sz = strlen ( name ) + 1 ; - n = new char [ name_sz ] ; - memcpy ( n, name, name_sz ) ; + n = ulStrDup ( name ) ; b = bb ; /* ns = 0 ; subtypes = 0 ; */ |