From e691b664e3cd92651264e67a6b40b7c9e1b67db2 Mon Sep 17 00:00:00 2001 From: jacob berkman Date: Thu, 25 Apr 2002 16:25:07 +0000 Subject: [PATCH] g_file_get_contents() takes a gsize not int (fixes bus error on 64-bit 2002-04-25 jacob berkman * src/session.c (load_state): g_file_get_contents() takes a gsize not int (fixes bus error on 64-bit platforms) --- ChangeLog | 5 +++++ src/session.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3905730a9..6eb0f6f87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-04-25 jacob berkman + + * src/session.c (load_state): g_file_get_contents() takes a gsize + not int (fixes bus error on 64-bit platforms) + 2002-04-22 Havoc Pennington * src/main.c (main): call setlocale ourselves because due to a diff --git a/src/session.c b/src/session.c index 748cdbf11..5facaea95 100644 --- a/src/session.c +++ b/src/session.c @@ -976,7 +976,7 @@ load_state (const char *previous_save_file) GError *error; ParseData parse_data; char *text; - int length; + gsize length; char *session_file; session_file = g_strconcat (g_get_home_dir (),