diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-18 21:15:30 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2006-10-18 21:15:30 +0000 |
| commit | ee6369fc3ccd4401dd405c66c07f2b87f7c58b1f (patch) | |
| tree | 4a8e5d9f98d4736fe8d11147203d4d2481240681 /databases/evolution-data-server/files | |
| parent | - Include GTK+ in the sentences to show that this is not only for GNOME users, (diff) | |
Restore a patch that was lost in the GNOME 2.16 update and re-fix the
problem where Evolution would run out of memory on 64-bit platforms.
Reported by: cokane
Approved by: portmgr (implicit)
Diffstat (limited to 'databases/evolution-data-server/files')
| -rw-r--r-- | databases/evolution-data-server/files/patch-camel_camel-object.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/evolution-data-server/files/patch-camel_camel-object.c b/databases/evolution-data-server/files/patch-camel_camel-object.c new file mode 100644 index 000000000000..09b0cab7b6f4 --- /dev/null +++ b/databases/evolution-data-server/files/patch-camel_camel-object.c @@ -0,0 +1,22 @@ +--- camel-object.c.orig Wed Oct 18 15:53:34 2006 ++++ camel-object.c Wed Oct 18 15:55:01 2006 +@@ -457,7 +457,7 @@ + } + + /* we batch up the properties and set them in one go */ +- if (!(argv = g_try_malloc ((gulong)(sizeof (*argv) + (count - CAMEL_ARGV_MAX) * sizeof (argv->argv[0]))))) ++ if (!(argv = g_try_malloc ((guint32)(sizeof (*argv) + (count - CAMEL_ARGV_MAX) * sizeof (argv->argv[0]))))) + return -1; + + argv->argc = 0; +@@ -537,8 +537,8 @@ + + count = g_slist_length(props); + +- arggetv = g_malloc0(sizeof(*arggetv) + (count - CAMEL_ARGV_MAX) * sizeof(arggetv->argv[0])); +- argv = g_malloc0(sizeof(*argv) + (count - CAMEL_ARGV_MAX) * sizeof(argv->argv[0])); ++ arggetv = g_malloc0((guint32)(sizeof(*arggetv) + (count - CAMEL_ARGV_MAX) * sizeof(arggetv->argv[0]))); ++ argv = g_malloc0((guint32)(sizeof(*argv) + (count - CAMEL_ARGV_MAX) * sizeof(argv->argv[0]))); + l = props; + i = 0; + while (l) { |
