diff audacious/util.c @ 1193:03414b9d2507 trunk

[svn] filesize must be cached, otherwise lookup loop will crash.
author yaz
date Tue, 13 Jun 2006 08:36:56 -0700
parents 36e8431d8e19
children 99454d030722
line wrap: on
line diff
--- a/audacious/util.c	Tue Jun 13 01:59:28 2006 -0700
+++ b/audacious/util.c	Tue Jun 13 08:36:56 2006 -0700
@@ -403,7 +403,8 @@
     static gchar *open_buffer = NULL;
     gchar *ret_buffer = NULL;
     gint found_section = 0, len = 0;
-    gsize filesize, off = 0;
+    static gsize filesize = 0;
+    gsize off = 0;
     gchar *outbuf;
     unsigned char x[] = { 0xff, 0xfe, 0x00 };
     guint counter;