Code

xterm_title: pass string, no format
[ncmpc.git] / src / main.c
index 0729610a54ad7336e0347efb12154e9187d764d3..b67165f144f9eec225a338285ed9c96dcafe6cfd 100644 (file)
@@ -26,8 +26,8 @@
 #include "command.h"
 #include "ncu.h"
 #include "screen.h"
-#include "screen_utils.h"
 #include "screen_status.h"
+#include "xterm_title.h"
 #include "strfsong.h"
 #include "i18n.h"
 #include "player_command.h"
@@ -83,7 +83,7 @@ update_xterm_title(void)
        static char title[BUFSIZE];
        if (strncmp(title, tmp, BUFSIZE)) {
                g_strlcpy(title, tmp, BUFSIZE);
-               set_xterm_title("%s", title);
+               set_xterm_title(title);
        }
 }
 #endif