Revert "cdrom.c: fixed thinko breaking strlen"

This reverts commit c998c9b40647921fea78740a9d0b34d29e864182.
This commit is contained in:
Sisyphus 2013-08-21 17:19:19 +03:00 committed by Michael Shigorin
parent d0b4901c14
commit 83fd161329

View File

@ -42,8 +42,7 @@ extern char version[];
static int mount_that_cd_device(char * dev_name)
{
char device_fullname[64] = "/dev/";
strcpy(device_fullname + 5, dev_name);
size_t l = strlen(device_fullname);
size_t l = strlen(strcpy(device_fullname + 5, dev_name));
if (islower(device_fullname[l - 1])) {
int ret;