From f1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 14 Aug 2007 14:37:22 +0000 Subject: Fixed a crash in the FString::prepend function on a null string corner case. Also added more tests to the FString unit tests and switched the ParamProc to using FString instead of std::string, this will break a few programs in very minor ways, a few seconds each to fix, I'd say. --- src/paramproc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/paramproc.cpp') diff --git a/src/paramproc.cpp b/src/paramproc.cpp index 34e973e..67ef44b 100644 --- a/src/paramproc.cpp +++ b/src/paramproc.cpp @@ -11,7 +11,7 @@ Bu::ParamProc::ParamPtr::ParamPtr() type = vtunset; } -ptrtype( std::string, str ); +ptrtype( Bu::FString, str ); ptrtype( uint64_t, uint64 ); ptrtype( uint32_t, uint32 ); ptrtype( uint16_t, uint16 ); @@ -481,7 +481,7 @@ int Bu::ParamProc::help( int argc, char *argv[] ) if( (*i)->sWord.getStr() ) { printf("--"); - std::string sTmp = (*i)->sWord.getStr(); + Bu::FString sTmp = (*i)->sWord.getStr(); if( (*i)->sExtra.getStr() ) sTmp += (*i)->sExtra.getStr(); printf( fmt, sTmp.c_str() ); -- cgit v1.2.3