# HG changeset patch # User reimar # Date 1160928366 0 # Node ID f4780fd3a73c3121f3582ce58f20712d5f31f01e # Parent 8117367ef34503b8f8b7000c3f3e8f851c3b0204 strcat->strcpy simplification diff -r 8117367ef345 -r f4780fd3a73c Gui/win32/gui.c --- 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))