File gmime-CVE-2010-0409.patch of Package gmime

Index: gmime-2.2.23/docs/reference/html/gmime-gmime-utils.html
===================================================================
--- gmime-2.2.23.orig/docs/reference/html/gmime-gmime-utils.html
+++ gmime-2.2.23/docs/reference/html/gmime-gmime-utils.html
@@ -1176,7 +1176,7 @@ the end of the UU encoded block has been
 <hr>
 <div class="refsect2" lang="en">
 <a name="GMIME-UUENCODE-LEN:CAPS"></a><h3>GMIME_UUENCODE_LEN()</h3>
-<pre class="programlisting">#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+<pre class="programlisting">#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 </pre>
 <p>
 Calculates the maximum number of bytes needed to uuencode the full
Index: gmime-2.2.23/docs/reference/xml/gmime-utils.xml
===================================================================
--- gmime-2.2.23.orig/docs/reference/xml/gmime-utils.xml
+++ gmime-2.2.23/docs/reference/xml/gmime-utils.xml
@@ -761,7 +761,7 @@ the end of the UU encoded block has been
 </para></refsect2>
 <refsect2 id="GMIME-UUENCODE-LEN:CAPS" role="macro">
 <title>GMIME_UUENCODE_LEN()</title>
-<indexterm zone="GMIME-UUENCODE-LEN:CAPS"><primary>GMIME_UUENCODE_LEN</primary></indexterm><programlisting>#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+<indexterm zone="GMIME-UUENCODE-LEN:CAPS"><primary>GMIME_UUENCODE_LEN</primary></indexterm><programlisting>#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 </programlisting>
 <para>
 Calculates the maximum number of bytes needed to uuencode the full
Index: gmime-2.2.23/gmime/gmime-utils.h
===================================================================
--- gmime-2.2.23.orig/gmime/gmime-utils.h
+++ gmime-2.2.23/gmime/gmime-utils.h
@@ -106,7 +106,7 @@ struct _GMimeReferences {
  * Returns the number of output bytes needed to uuencode an input
  * buffer of size @x.
  **/
-#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 62))
+#define GMIME_UUENCODE_LEN(x)      ((size_t) (((((x) + 2) / 45) * 62) + 64))
 
 
 /**
openSUSE Build Service is sponsored by