Fix compile error "format not a string literal and no format arguments [-Werror=format-security]"

ulab-next-nosound
NerdKnight 9 years ago
parent 034ee36f9c
commit 99ebe1340f

@ -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);

@ -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;
}

@ -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) ;

Loading…
Cancel
Save