diff options
author | NerdKnight <nerdkight@gmail.com> | 2016-03-28 14:55:20 -0300 |
---|---|---|
committer | NerdKnight <nerdkight@gmail.com> | 2016-03-28 14:55:20 -0300 |
commit | 99ebe1340f93723c668c74d3469fa3ff7afc3fbc (patch) | |
tree | 39c9b908527bc1b8266cb29bc05f38224696544a /xrdp | |
parent | 034ee36f9c3aa93098fac08d2da901d032460c78 (diff) | |
download | xrdp-proprietary-99ebe1340f93723c668c74d3469fa3ff7afc3fbc.tar.gz xrdp-proprietary-99ebe1340f93723c668c74d3469fa3ff7afc3fbc.zip |
Fix compile error "format not a string literal and no format arguments [-Werror=format-security]"
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/xrdp_mm.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_wm.c | 2 |
2 files changed, 2 insertions, 2 deletions
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) ; |