app-emulation/open-vm-tools: add gcc 4.4 patch

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1293 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2009-06-02 14:10:15 +00:00
parent f7abb8ce40
commit 58dcf5be5c
3 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
--- 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;
}
}