[monkey-bubble: 651/753] fix a 64bit issue with a format string (remember that types that you don't
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 651/753] fix a 64bit issue with a format string (remember that types that you don't
- Date: Wed, 14 Jul 2010 22:50:25 +0000 (UTC)
commit 84d3d338ed13cbf16a66d294d786cbec04734757
Author: George Lebl <jirka 5z com>
Date: Thu Aug 23 23:34:20 2001 +0000
fix a 64bit issue with a format string (remember that types that you don't
Thu Aug 23 23:23:42 2001 George Lebl <jirka 5z com>
* gnome-exec.c: fix a 64bit issue with a format string (remember
that types that you don't know size (such as gsize) should be
casted when passed to printf since they can be either %d or %ld
or some such.
libgnome/ChangeLog | 7 +++++++
libgnome/gnome-exec.c | 3 ++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/libgnome/ChangeLog b/libgnome/ChangeLog
index 46688bc..e9ab741 100644
--- a/libgnome/ChangeLog
+++ b/libgnome/ChangeLog
@@ -1,3 +1,10 @@
+Thu Aug 23 23:23:42 2001 George Lebl <jirka 5z com>
+
+ * gnome-exec.c: fix a 64bit issue with a format string (remember
+ that types that you don't know size (such as gsize) should be
+ casted when passed to printf since they can be either %d or %ld
+ or some such.
+
2001-08-10 Michael Meeks <michael ximian com>
* gnome-init.c (libgnome_requirements): remove redundant
diff --git a/libgnome/gnome-exec.c b/libgnome/gnome-exec.c
index ffb5e43..93d73dd 100644
--- a/libgnome/gnome-exec.c
+++ b/libgnome/gnome-exec.c
@@ -185,7 +185,8 @@ gnome_execute_async_with_env_fds (const char *dir, int argc,
res = read (parent_comm_pipes[0], &child_pid, sizeof(child_pid));
if (res != sizeof(child_pid))
{
- g_message("res is %d instead of %d", res, (int)sizeof(child_pid));
+ g_message("res is %ld instead of %d",
+ (long)res, (int)sizeof(child_pid));
child_pid = -1; /* really weird things happened */
}
else if (read (parent_comm_pipes[0], &child_errno, sizeof(child_errno))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]