changeset 2630:76924684ee4f

- Fix seeking beyond end of stream
author Ralf Ertzinger <ralf@skytale.net>
date Thu, 22 May 2008 19:31:48 +0200
parents 049f212e7e00
children 887b2c5a1fbb
files src/neon/neon.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/neon/neon.c	Fri May 16 16:01:18 2008 +0200
+++ b/src/neon/neon.c	Thu May 22 19:31:48 2008 +0200
@@ -1301,7 +1301,7 @@
 	_LEAVE -1;
     }
 
-    if (newpos > content_length) {
+    if (newpos >= content_length) {
         _ERROR("<%p> Can not seek beyond end of stream", h);
         _LEAVE -1;
     }