[DVDnav-discuss] r1074 - trunk/libdvdnav/src/vm/vm.c

nicodvb subversion at mplayerhq.hu
Thu Jun 5 12:30:17 CEST 2008


Author: nicodvb
Date: Thu Jun  5 12:30:17 2008
New Revision: 1074

Log:
(char*) typecase to silence gcc; patch by Erik Hovland org

Modified:
   trunk/libdvdnav/src/vm/vm.c

Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c	(original)
+++ trunk/libdvdnav/src/vm/vm.c	Thu Jun  5 12:30:17 2008
@@ -159,7 +159,7 @@ static void dvd_read_name(char *name, co
               fprintf(MSG_OUT, " ");
             }
           }
-          strncpy(name, &data[25], 48);
+          strncpy(name, (char*) &data[25], 48);
           name[48] = 0;
           fprintf(MSG_OUT, "\nlibdvdnav: DVD Serial Number: ");
           for(i=73; i < 89; i++ ) {



More information about the DVDnav-discuss mailing list