diff options
author | Jacek Antonelli | 2008-11-30 13:33:02 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-11-30 13:37:09 -0600 |
commit | a97da2c607517551faef928353813b8456bfcc53 (patch) | |
tree | b7893d5113e0aee695c3f53363db2a10cddde0b4 /linden/indra/llwindow/llwindowsdl.cpp | |
parent | Remove preprocessor condition for grid selector. (diff) | |
download | meta-impy-a97da2c607517551faef928353813b8456bfcc53.zip meta-impy-a97da2c607517551faef928353813b8456bfcc53.tar.gz meta-impy-a97da2c607517551faef928353813b8456bfcc53.tar.bz2 meta-impy-a97da2c607517551faef928353813b8456bfcc53.tar.xz |
Fixed passing nonliteral strings to *printf functions.
gcc 4.3 rejects that as being unsafe.
Patch by Stephen Zenith. [#11]
Diffstat (limited to 'linden/indra/llwindow/llwindowsdl.cpp')
-rw-r--r-- | linden/indra/llwindow/llwindowsdl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp index c088dd8..f0acee5 100644 --- a/linden/indra/llwindow/llwindowsdl.cpp +++ b/linden/indra/llwindow/llwindowsdl.cpp | |||
@@ -2530,7 +2530,7 @@ S32 OSMessageBoxSDL(const std::string& text, const std::string& caption, U32 typ | |||
2530 | buttons = GTK_BUTTONS_YES_NO; | 2530 | buttons = GTK_BUTTONS_YES_NO; |
2531 | break; | 2531 | break; |
2532 | } | 2532 | } |
2533 | win = gtk_message_dialog_new(NULL,flags, messagetype, buttons, text.c_str()); | 2533 | win = gtk_message_dialog_new(NULL,flags, messagetype, buttons, "%s", text.c_str()); |
2534 | 2534 | ||
2535 | # if LL_X11 | 2535 | # if LL_X11 |
2536 | // Make GTK tell the window manager to associate this | 2536 | // Make GTK tell the window manager to associate this |