-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- a/gtk/src/gtk_s9x.cpp | ||
+++ b/gtk/src/gtk_s9x.cpp | ||
@@ -383,35 +383,35 @@ | ||
case S9X_TRACE: | ||
case S9X_DEBUG: | ||
{ | ||
- g_debug(message); | ||
+ g_debug("%s", message); | ||
break; | ||
} | ||
case S9X_WARNING: | ||
{ | ||
- g_warning(message); | ||
+ g_warning("%s", message); | ||
break; | ||
} | ||
case S9X_INFO: | ||
{ | ||
- g_info(message); | ||
- g_message(message); | ||
+ g_info("%s", message); | ||
+ g_message("%s", message); | ||
break; | ||
} | ||
case S9X_ERROR: | ||
{ | ||
// GLib’s g_critical() does not terminate the process | ||
- g_critical(message); | ||
+ g_critical("%s", message); | ||
break; | ||
} | ||
case S9X_FATAL_ERROR: | ||
{ | ||
// GLib’s g_error() terminates the process | ||
- g_error(message); | ||
+ g_error("%s", message); | ||
break; | ||
} | ||
default: | ||
{ | ||
- g_message(message); | ||
+ g_message("%s", message); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters