diff --git a/src/tests/kits/interface/menu/menuworld/stddlg.cpp b/src/tests/kits/interface/menu/menuworld/stddlg.cpp index f1a745f347..f2f121486e 100644 --- a/src/tests/kits/interface/menu/menuworld/stddlg.cpp +++ b/src/tests/kits/interface/menu/menuworld/stddlg.cpp @@ -1,9 +1,9 @@ //-------------------------------------------------------------------- -// +// // stddlg.cpp // // Written by: Owen Smith -// +// //-------------------------------------------------------------------- /* @@ -12,18 +12,17 @@ */ #include -#include +#include #include "constants.h" #include "stddlg.h" + void ierror(const char* msg) { - char* fullMsg = new char[strlen(STR_IERROR) + strlen(msg) + 1]; - strcpy(fullMsg, STR_IERROR); - strcpy(fullMsg, msg); + BString fullMsg(STR_IERROR); + fullMsg << msg; BAlert alert("Internal Error", fullMsg, "OK", NULL, NULL, B_WIDTH_AS_USUAL, B_STOP_ALERT); alert.Go(); - delete [] fullMsg; }