diff src/madplug/plugin.c @ 2685:45be141b7586

Use a bit bigger buffer.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 05 Jun 2008 15:45:12 +0300
parents 84d34cd6aa71
children 206f0322d221
line wrap: on
line diff
--- a/src/madplug/plugin.c	Thu Jun 05 11:12:17 2008 +0300
+++ b/src/madplug/plugin.c	Thu Jun 05 15:45:12 2008 +0300
@@ -254,7 +254,7 @@
 {
     guint32 check;
     gchar *ext = extname(filename);
-    guchar buf[4];
+    guchar buf[16];
 
     info.remote = aud_vfs_is_remote(filename);
 
@@ -272,7 +272,7 @@
         return 0;
     }
 
-    if (aud_vfs_fread(buf, 1, 4, fin) == 0) {
+    if (aud_vfs_fread(buf, 1, sizeof(buf), fin) == 0) {
         g_message("aud_vfs_fread failed @1 %s", filename);
         return 0;
     }