From: AzureusNation Date: Fri, 18 Oct 2019 09:21:58 +0000 (+0100) Subject: Fixes Auto USB Redirection X-Git-Tag: 2.0.0~299 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7d6a10aaffc2880741f27e99e71ba21b1aecefab;p=platform%2Fupstream%2Ffreerdp.git Fixes Auto USB Redirection Base 0 does not work when converting the string to long int. This ends up not showing the correct device id and sometimes the wrong bus id. By changing it to base 10 conversion instead of base 0 this fixes the issue of auto redirect usb devices. --- diff --git a/channels/urbdrc/client/urbdrc_main.c b/channels/urbdrc/client/urbdrc_main.c index 2da59c4..7221327 100644 --- a/channels/urbdrc/client/urbdrc_main.c +++ b/channels/urbdrc/client/urbdrc_main.c @@ -885,12 +885,12 @@ static void* urbdrc_search_usb_device(void* arg) continue; } - busnum = strtol(udev_device_get_property_value(dev, "BUSNUM"), NULL, 0); + busnum = strtol(udev_device_get_property_value(dev, "BUSNUM"), NULL, 10); if (errno != 0) continue; - devnum = strtol(udev_device_get_property_value(dev, "DEVNUM"), NULL, 0); + devnum = strtol(udev_device_get_property_value(dev, "DEVNUM"), NULL, 10); if (errno != 0) continue;