A little more correctness in formatting pids
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Jul 2010 19:11:24 +0000 (15:11 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 8 Jul 2010 19:11:24 +0000 (15:11 -0400)
Requested in bug 623772

gio/gdesktopappinfo.c

index ea2d403..1df09d6 100644 (file)
@@ -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);
     }
 }