g_file_get_contents() takes a gsize not int (fixes bus error on 64-bit

2002-04-25  jacob berkman  <jacob@ximian.com>

	* src/session.c (load_state): g_file_get_contents() takes a gsize
	not int (fixes bus error on 64-bit platforms)
This commit is contained in:
jacob berkman 2002-04-25 16:25:07 +00:00 committed by Jacob Berkman
parent 4ee70f0780
commit e691b664e3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-04-25 jacob berkman <jacob@ximian.com>
* 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 <hp@redhat.com> 2002-04-22 Havoc Pennington <hp@redhat.com>
* src/main.c (main): call setlocale ourselves because due to a * src/main.c (main): call setlocale ourselves because due to a

View File

@ -976,7 +976,7 @@ load_state (const char *previous_save_file)
GError *error; GError *error;
ParseData parse_data; ParseData parse_data;
char *text; char *text;
int length; gsize length;
char *session_file; char *session_file;
session_file = g_strconcat (g_get_home_dir (), session_file = g_strconcat (g_get_home_dir (),