From fa1aab0091643d5be6360b3dc82b802662875e39 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 15 Oct 2006 16:06:06 +0000 Subject: [PATCH] strcat->strcpy simplification git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20243 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/win32/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Gui/win32/gui.c b/Gui/win32/gui.c index 0863c6631a..cd8ace137d 100644 --- a/Gui/win32/gui.c +++ b/Gui/win32/gui.c @@ -1170,8 +1170,7 @@ static void create_menu(gui_t *gui) 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))