diff --git a/sesman/sesman.c b/sesman/sesman.c index 88eeb346..64728376 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -241,7 +241,7 @@ main(int argc, char **argv) { g_printf("sesman is already running.\n"); g_printf("if it's not running, try removing "); - g_printf(pid_file); + g_printf("%s", pid_file); g_printf("\n"); g_deinit(); g_exit(1); 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) ;