From 1ce0cb8a89807a334fa49fae74076ad087c626d3 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 27 Jun 2014 02:22:27 +0200 Subject: [PATCH] Avoid a warning while building with Gtk+ 3.0 --- src/terminal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal.c b/src/terminal.c index a403889..9ff5b91 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -248,7 +248,7 @@ static int _terminal_open_tab(Terminal * terminal) GtkWidget * widget; char * argv[] = { BINDIR "/xterm", "xterm", "-into", NULL, "-class", "Terminal", NULL, NULL }; - char buf[16]; + char buf[32]; GSpawnFlags flags = G_SPAWN_FILE_AND_ARGV_ZERO | G_SPAWN_DO_NOT_REAP_CHILD; GError * error = NULL; @@ -282,7 +282,7 @@ static int _terminal_open_tab(Terminal * terminal) p->socket, TRUE); #endif /* launch xterm */ - snprintf(buf, sizeof(buf), "%u", gtk_socket_get_id( + snprintf(buf, sizeof(buf), "%lu", gtk_socket_get_id( GTK_SOCKET(p->socket))); argv[3] = buf; argv[6] = terminal->shell;