From 4625c126c61472508288600da6f75c5873ba37d8 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 23 Oct 2002 12:56:30 +0000 Subject: don't use strdup svn-id: r5287 --- common/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/main.cpp') diff --git a/common/main.cpp b/common/main.cpp index 802e789c6d..fa76617bc1 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -191,7 +191,7 @@ int main(int argc, char *argv[]) // Set the window caption (for OSystems that support it) OSystem::Property prop; - prop.caption = (char *)detector.getGameName(); + prop.caption = detector.getGameName().c_str(); system->property(OSystem::PROP_SET_WINDOW_CAPTION, &prop); // Create the game engine -- cgit v1.2.3