summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-10-31 18:47:46 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-10-31 18:47:46 +0000
commitf358e320ceb3ebf96005699b5d1a75e6027571d8 (patch)
treecb4354e0c6fcc76abe4073fe1ed568f88501b988
parentc4d32870e1b3f25cfe128387316d375a196a5997 (diff)
Fix nasty printf argument error
-rw-r--r--indra/llwindow/llwindowsdl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llwindow/llwindowsdl.cpp b/indra/llwindow/llwindowsdl.cpp
index 96a8fae592..6a0ef141f5 100644
--- a/indra/llwindow/llwindowsdl.cpp
+++ b/indra/llwindow/llwindowsdl.cpp
@@ -2538,7 +2538,8 @@ S32 OSMessageBoxSDL(const std::string& text, const std::string& caption, U32 typ
buttons = GTK_BUTTONS_YES_NO;
break;
}
- win = gtk_message_dialog_new(NULL,flags, messagetype, buttons, text.c_str());
+ win = gtk_message_dialog_new(NULL, flags, messagetype, buttons, "%s",
+ text.c_str());
# if LL_X11
// Make GTK tell the window manager to associate this