diff src/audacious/input.c @ 2344:3196a09a03e5 trunk

[svn] - fix potential overflow on bigendian (<= is not proper for boundschecking -- duh)
author nenolod
date Mon, 15 Jan 2007 20:47:50 -0800
parents 0df1a48b8fc4
children 74bbc3e18cba
line wrap: on
line diff
--- a/src/audacious/input.c	Mon Jan 15 19:28:19 2007 -0800
+++ b/src/audacious/input.c	Mon Jan 15 20:47:50 2007 -0800
@@ -419,7 +419,7 @@
     gboolean use_ext_filter;
 
     filename_proxy = g_strdup(filename);
-    fd = vfs_fopen(filename, "rb");
+    fd = vfs_buffered_file_new_from_uri(filename_proxy);
 
     ext = strrchr(filename_proxy, '.') + 1;