b0fa8f75c7
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/vmware@1340 6952d904-891a-0410-993b-d76249ca496b
15 lines
418 B
Diff
15 lines
418 B
Diff
--- a/lib/wiper/wiperPosix.c
|
|
+++ b/lib/wiper/wiperPosix.c
|
|
@@ -998,8 +998,9 @@
|
|
break;
|
|
}
|
|
}
|
|
- } else {
|
|
- fgets(deviceName, sizeof deviceName, fp);
|
|
+ } else if (fgets(deviceName, sizeof deviceName, fp) != deviceName) {
|
|
+ Warning("%s: Error reading device name from /proc/devices.", __func__);
|
|
+ break;
|
|
}
|
|
}
|
|
|