[glib] A little more correctness in formatting pids



commit 349aab2bd4cb221b99d98802339bde8d0adc178d
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 8 15:11:24 2010 -0400

    A little more correctness in formatting pids
    
    Requested in bug 623772

 gio/gdesktopappinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index ea2d403..1df09d6 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);
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]