[MPlayer-cvslog] r20243 - trunk/Gui/win32/gui.c

reimar subversion at mplayerhq.hu
Sun Oct 15 18:06:06 CEST 2006


Author: reimar
Date: Sun Oct 15 18:06:06 2006
New Revision: 20243

Modified:
   trunk/Gui/win32/gui.c

Log:
strcat->strcpy simplification


Modified: trunk/Gui/win32/gui.c
==============================================================================
--- trunk/Gui/win32/gui.c	(original)
+++ trunk/Gui/win32/gui.c	Sun Oct 15 18:06:06 2006
@@ -1170,8 +1170,7 @@
         if(GetDriveType(device + pos) == DRIVE_CDROM)
         {
             volname[0] = 0;
-            menuitem[0] = 0;
-            strcat(menuitem, device + pos);
+            strcpy(menuitem, device + pos);
             menuitem[strlen(menuitem) - 1]=0;
             GetVolumeInformation(device + pos, volname, MAX_PATH, NULL, NULL, NULL, NULL, 0);
             if (strlen(volname))



More information about the MPlayer-cvslog mailing list