From 349aab2bd4cb221b99d98802339bde8d0adc178d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Jul 2010 15:11:24 -0400 Subject: [PATCH] A little more correctness in formatting pids Requested in bug 623772 --- gio/gdesktopappinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index ea2d403a0..1df09d64a 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -908,7 +908,7 @@ child_setup (gpointer user_data) g_setenv ("GIO_LAUNCHED_DESKTOP_FILE", data->desktop_file, TRUE); - g_snprintf (pid, 20, "%d", getpid ()); + g_snprintf (pid, 20, "%ld", (long)getpid ()); g_setenv ("GIO_LAUNCHED_DESKTOP_FILE_PID", pid, TRUE); } } -- 2.34.1