changeset 20237:f4780fd3a73c

strcat->strcpy simplification
author reimar
date Sun, 15 Oct 2006 16:06:06 +0000
parents 8117367ef345
children acbcafd891ff
files Gui/win32/gui.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/gui.c	Sun Oct 15 15:55:48 2006 +0000
+++ b/Gui/win32/gui.c	Sun Oct 15 16:06:06 2006 +0000
@@ -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))