mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-02 09:22:16 +01:00
A little more correctness in formatting pids
Requested in bug 623772
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user