X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=libaltos%2Flibaltos_windows.c;fp=libaltos%2Flibaltos_windows.c;h=162c85bab8fa6aa658479017bb920395fb678e8a;hp=0c1f6782fd58f167be01d53a112dede4d04a426f;hb=67e8e9b5b51e259eda4a669de527111851bab78f;hpb=9bee7d9b6be861909d8c89767f6eabf007f76612 diff --git a/libaltos/libaltos_windows.c b/libaltos/libaltos_windows.c index 0c1f6782..162c85ba 100644 --- a/libaltos/libaltos_windows.c +++ b/libaltos/libaltos_windows.c @@ -246,6 +246,10 @@ altos_list_next(struct altos_list *list, struct altos_device *device) break; } + char *space = strchr(friendlyname, ' '); + if (space) + *space = '\0'; + device->vendor = vid; device->product = pid; device->serial = serial;