diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-02-01 12:11:48 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-02-01 12:11:48 +0000 |
commit | e4cd173d8be3a6ae81c3066e5e81d1cddd7edc1e (patch) | |
tree | 955e94086cc9a77d20326d33b4bc35cf4d85dc41 /www/gatling/files/patch-gatling.c | |
parent | Update to 2.3 (diff) |
Correct an off-by-one error in HTTP range handling.
Patch obtained from: gatling CVS
PR: ports/76913
Submitted by: Thomas-Martin Seck (maintainer)
Notes
Notes:
svn path=/head/; revision=127842
Diffstat (limited to 'www/gatling/files/patch-gatling.c')
-rw-r--r-- | www/gatling/files/patch-gatling.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/www/gatling/files/patch-gatling.c b/www/gatling/files/patch-gatling.c new file mode 100644 index 000000000000..8952ed9e6495 --- /dev/null +++ b/www/gatling/files/patch-gatling.c @@ -0,0 +1,19 @@ +--- gatling.c.orig Wed Jul 28 15:23:51 2004 ++++ gatling.c Mon Jan 31 18:42:03 2005 +@@ -1261,6 +1261,7 @@ e404: + ++c; + if ((i=scan_ulonglong(c,&range_last))) { + if (!i) goto rangeerror; ++ ++range_last; + } + } + } else { +@@ -1311,7 +1312,7 @@ rangeerror: + c+=fmt_str(c,"\r\nContent-Range: bytes "); + c+=fmt_ulonglong(c,range_first); + c+=fmt_str(c,"-"); +- c+=fmt_ulonglong(c,range_last); ++ c+=fmt_ulonglong(c,range_last-1); + c+=fmt_str(c,"/"); + c+=fmt_ulonglong(c,ss.st_size); + } |