From 99ebe1340f93723c668c74d3469fa3ff7afc3fbc Mon Sep 17 00:00:00 2001 From: NerdKnight Date: Mon, 28 Mar 2016 14:55:20 -0300 Subject: Fix compile error "format not a string literal and no format arguments [-Werror=format-security]" --- xrdp/xrdp_mm.c | 2 +- xrdp/xrdp_wm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xrdp') diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c index 64ebdaf4..1e1c34c1 100644 --- a/xrdp/xrdp_mm.c +++ b/xrdp/xrdp_mm.c @@ -2658,7 +2658,7 @@ server_msg(struct xrdp_mod *mod, char *msg, int code) if (code == 1) { - g_writeln(msg); + g_writeln("%s",msg); return 0; } diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c index 362d0d0a..ddadbe5a 100644 --- a/xrdp/xrdp_wm.c +++ b/xrdp/xrdp_wm.c @@ -1867,7 +1867,7 @@ void add_string_to_logwindow(char *msg, struct list *log) do { new_part_message = g_strndup(current_pointer, LOG_WINDOW_CHAR_PER_LINE) ; - g_writeln(new_part_message); + g_writeln("%s",new_part_message); list_add_item(log, (long)new_part_message); processedlen = processedlen + g_strlen(new_part_message); current_pointer = current_pointer + g_strlen(new_part_message) ; -- cgit v1.2.1