strcat->strcpy simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20243 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-10-15 16:06:06 +00:00
parent c42fa95d52
commit fa1aab0091
1 changed files with 1 additions and 2 deletions

View File

@ -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))