mirror of https://github.com/mpv-player/mpv
strcat->strcpy simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20243 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c42fa95d52
commit
fa1aab0091
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue