[MPlayer-cvslog] r38656 - trunk/mp_msg.c

cigaes subversion at mplayerhq.hu
Sat Sep 21 12:30:14 EEST 2024


Author: cigaes
Date: Sat Sep 21 12:30:14 2024
New Revision: 38656

Log:
mp_msg: explicit pointer casts

Recent compilers consider implicit casts an error.

Modified:
   trunk/mp_msg.c

Modified: trunk/mp_msg.c
==============================================================================
--- trunk/mp_msg.c	Sat Sep 21 12:30:13 2024	(r38655)
+++ trunk/mp_msg.c	Sat Sep 21 12:30:14 2024	(r38656)
@@ -70,7 +70,7 @@ const char* filename_recode(const char*
     filename_len = strlen(filename);
     max_path = MSGSIZE_MAX - 4;
     precoded = recoded_filename;
-    if (iconv(inv_msgiconv, &filename, &filename_len,
+    if (iconv(inv_msgiconv, (char **)&filename, &filename_len,
               &precoded, &max_path) == (size_t)(-1) && errno == E2BIG) {
         precoded[0] = precoded[1] = precoded[2] = '.';
         precoded += 3;


More information about the MPlayer-cvslog mailing list