Use fstat()!
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 20 May 2008 15:47:25 +0000 (18:47 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 20 May 2008 15:47:25 +0000 (18:47 +0300)
modules/misc/svg.c

index 12e1084..d278bee 100644 (file)
@@ -184,10 +184,8 @@ static char *svg_GetTemplate( vlc_object_t *p_this )
         else
         {
             struct stat s;
-            int i_ret;
 
-            i_ret = utf8_stat( psz_filename, &s );
-            if( i_ret )
+            if( fstat( fileno( file ), &s ) )
             {
                 /* Problem accessing file information. Should not
                    happen as we could open it. */