]> git.sesse.net Git - vlc/blobdiff - modules/access_filter/record.c
Replace strerror() with %m (or Linux DVB: strerror_r) - refs #1297
[vlc] / modules / access_filter / record.c
index fc465fac60ea086a4db2ebc0d8c6b3b0e5a9e7ef..f51dbbfdbc67bb765ea808e0c5615481443a8208 100644 (file)
@@ -447,8 +447,8 @@ static void Dump( access_t *p_access, uint8_t *p_buffer, int i_buffer )
         p_sys->f = utf8_fopen( p_sys->psz_file, "wb" );
         if( p_sys->f == NULL )
         {
-            msg_Err( p_access, "cannot open file '%s' (%s)",
-                     p_sys->psz_file, strerror(errno) );
+            msg_Err( p_access, "cannot open file '%s' (%m)",
+                     p_sys->psz_file );
             free( p_sys->psz_file );
             p_sys->psz_file = NULL;
             p_sys->b_dump = VLC_FALSE;