diff options
author | jsorg71 <jsorg71> | 2009-08-20 21:17:29 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2009-08-20 21:17:29 +0000 |
commit | 18a5e7917d12bfda3cddd94f0c7f555824a1af88 (patch) | |
tree | 7f8c8280bb8d16a03eb6c021977d957c99f599e5 | |
parent | b836ece1f2c1c3f776ff00e00e1c0a89563e3c82 (diff) | |
download | xrdp-proprietary-18a5e7917d12bfda3cddd94f0c7f555824a1af88.tar.gz xrdp-proprietary-18a5e7917d12bfda3cddd94f0c7f555824a1af88.zip |
fix warnings
-rw-r--r-- | common/os_calls.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c index a5b88594..eff577c7 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -948,7 +948,9 @@ g_random(char* data, int len) } if (fd != -1) { - read(fd, data, len); + if (read(fd, data, len) != len) + { + } close(fd); } #endif @@ -1137,7 +1139,9 @@ g_get_current_dir(char* dirname, int maxlen) GetCurrentDirectoryA(maxlen, dirname); return 0; #else - getcwd(dirname, maxlen); + if (getcwd(dirname, maxlen) == 0) + { + } return 0; #endif } |