cups/cups-wbuffer.patch
Tim Waugh cb06f24a89 - 1.4b1.
- No longer need ext, includeifexists, foomatic-recommended, getnameddest,
    str2101, str2536 patches.
- Require poppler-utils at runtime and for build. No longer need
    pdftops.conf.
- Obsolete cupsddk.
2008-11-12 16:09:54 +00:00

13 lines
582 B
Diff

diff -up cups-1.4b1/cups/http.c.wbuffer cups-1.4b1/cups/http.c
--- cups-1.4b1/cups/http.c.wbuffer 2008-08-20 01:07:25.000000000 +0100
+++ cups-1.4b1/cups/http.c 2008-11-12 09:13:29.000000000 +0000
@@ -2166,7 +2166,7 @@ httpWrite2(http_t *http, /* I - Con
if (length > 0)
{
- if (http->wused && (length + http->wused) > sizeof(http->wbuffer))
+ if (http->wused && (length + http->wused) >= sizeof(http->wbuffer))
{
DEBUG_printf(("httpWrite2: Flushing buffer (wused=%d, length="
CUPS_LLFMT ")\n", http->wused, CUPS_LLCAST length));