gmime r1354 - in branches/gmime-2-2: . gmime



Author: fejj
Date: Thu Jun 12 12:27:38 2008
New Revision: 1354
URL: http://svn.gnome.org/viewvc/gmime?rev=1354&view=rev

Log:
2008-06-12  Jeffrey Stedfast  <fejj novell com>

	* gmime/gmime-utils.h (GMIME_QP_ENCODE_LEN): Add an extra byte for
	\n in the case of quoted_encode_close(). Thanks to Peter
	Bloomfield for discovering this.



Modified:
   branches/gmime-2-2/ChangeLog
   branches/gmime-2-2/gmime/gmime-utils.h

Modified: branches/gmime-2-2/gmime/gmime-utils.h
==============================================================================
--- branches/gmime-2-2/gmime/gmime-utils.h	(original)
+++ branches/gmime-2-2/gmime/gmime-utils.h	Thu Jun 12 12:27:38 2008
@@ -93,7 +93,7 @@
  * Returns the number of output bytes needed to encode an input buffer
  * of size @x using the quoted-printable encoding.
  **/
-#define GMIME_QP_ENCODE_LEN(x)     ((size_t) (((x) + 1) * 3))
+#define GMIME_QP_ENCODE_LEN(x)     ((size_t) ((((x) + 1) * 3) + 1))
 
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]