summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/lynx
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-01-29 13:02:32 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-01-29 13:02:32 +0000
commit8a9ab5d2b77b4dee07dc897da5cce4803629b642 (patch)
treea454279f71ffbcd4f4af43078a6d67f999437b6b /gnu/usr.bin/lynx
parent94df645ebfff43be5a8699deed4a7e92af072efb (diff)
More read/write result checking fixes to avoid unsigned comparisons vs
-1. ok henning@ beck@ ray@
Diffstat (limited to 'gnu/usr.bin/lynx')
-rw-r--r--gnu/usr.bin/lynx/src/LYJump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/lynx/src/LYJump.c b/gnu/usr.bin/lynx/src/LYJump.c
index bed7133eefd..bdc8a2cb5f8 100644
--- a/gnu/usr.bin/lynx/src/LYJump.c
+++ b/gnu/usr.bin/lynx/src/LYJump.c
@@ -411,7 +411,7 @@ PRIVATE unsigned LYRead_Jumpfile ARGS1(struct JumpTable *, jtp)
if (IsStream_LF) {
/** Handle as a stream. **/
#endif /* VMS */
- if (read(fd, mp, st.st_size) < st.st_size) {
+ if (read(fd, mp, st.st_size) != st.st_size) {
HTAlert(ERROR_READING_JUMP_FILE);
FREE(mp);
return 0;