Update of /cvsroot/plib/plib/src/psl
In directory usw-pr-cvs1:/tmp/cvs-serv8414
Modified Files:
pslFileIO.cxx
Log Message:
Replaced an instance of 'new' + strcpy () with ulStrDup ()
Index: pslFileIO.cxx
===================================================================
RCS file: /cvsroot/plib/plib/src/psl/pslFileIO.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- pslFileIO.cxx 10 Sep 2002 23:02:35 -0000 1.2
+++ pslFileIO.cxx 10 Sep 2002 23:05:55 -0000 1.3
@@ -43,8 +43,7 @@
pslFile ( FILE *_fd, const char *_fname )
{
- fname = new char [ strlen ( _fname ) + 1 ] ;
- strcpy ( fname, _fname ) ;
+ fname = ulStrDup ( _fname ) ;
fd = _fd ;
ungetSP = 0 ;
|