From 9310f56d8a647a324dbea86a9f08792130b5138b Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Wed, 13 Sep 2006 16:51:23 +0000 Subject: [PATCH] - Fixed STR #1968 properly (bug #205619). --- cups-wbuffer.patch | 11 +++++++++++ cups.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 cups-wbuffer.patch diff --git a/cups-wbuffer.patch b/cups-wbuffer.patch new file mode 100644 index 0000000..7965d31 --- /dev/null +++ b/cups-wbuffer.patch @@ -0,0 +1,11 @@ +--- cups-1.2.3/cups/http.c.wbuffer 2006-09-13 16:41:57.000000000 +0100 ++++ cups-1.2.3/cups/http.c 2006-09-13 16:42:23.000000000 +0100 +@@ -1886,7 +1886,7 @@ + + if (length > 0) + { +- if (http->wused && (length + http->wused) > sizeof(http->wbuffer)) ++ if (http->wused && (length + http->wused) >= sizeof(http->wbuffer)) + { + DEBUG_printf((" flushing buffer (wused=%d, length=%d)\n", + http->wused, length)); diff --git a/cups.spec b/cups.spec index 0901b2c..7b338dc 100644 --- a/cups.spec +++ b/cups.spec @@ -6,7 +6,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.2.3 -Release: 4 +Release: 5 License: GPL Group: System Environment/Daemons Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -33,6 +33,7 @@ Patch8: cups-serverbin-compat.patch Patch9: cups-locale.patch Patch10: cups-no-export-ssllibs.patch Patch11: cups-paps.patch +Patch12: cups-wbuffer.patch Patch13: cups-direct-usb.patch Patch14: cups-str1968.patch Patch15: cups-maxlogsize.patch @@ -131,6 +132,7 @@ lpd emulation. %patch9 -p1 -b .locale %patch10 -p1 -b .no-export-ssllibs %patch11 -p1 -b .paps +%patch12 -p1 -b .wbuffer %patch13 -p1 -b .direct-usb %patch14 -p1 -b .str1968 %patch15 -p1 -b .maxlogsize @@ -414,6 +416,9 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog +* Wed Sep 13 2006 Tim Waugh 1:1.2.3-5 +- Fixed STR #1968 properly (bug #205619). + * Tue Sep 12 2006 Tim Waugh - No longer need language patch.