[svn] GnuPG - r4788 - trunk/common
svn author marcus
cvs at cvs.gnupg.org
Wed Jun 18 17:16:55 CEST 2008
Author: marcus
Date: 2008-06-18 17:16:53 +0200 (Wed, 18 Jun 2008)
New Revision: 4788
Modified:
trunk/common/ChangeLog
trunk/common/sysutils.c
Log:
2008-06-18 Marcus Brinkmann <marcus at g10code.de>
* sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
Modified: trunk/common/ChangeLog
===================================================================
--- trunk/common/ChangeLog 2008-06-18 14:49:54 UTC (rev 4787)
+++ trunk/common/ChangeLog 2008-06-18 15:16:53 UTC (rev 4788)
@@ -1,5 +1,7 @@
2008-06-18 Marcus Brinkmann <marcus at g10code.de>
+ * sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
+
* sysutils.h (translate_table_init, translate_table_lookup): New
prototypes.
* sysutils.c: Include <ctype.h>.
Modified: trunk/common/sysutils.c
===================================================================
--- trunk/common/sysutils.c 2008-06-18 14:49:54 UTC (rev 4787)
+++ trunk/common/sysutils.c 2008-06-18 15:16:53 UTC (rev 4788)
@@ -314,7 +314,10 @@
void
translate_table_init (void)
{
-#define TRANS_MAX 100
+ /* Hold roughly 8 pairs of 64 bit numbers in hex notation:
+ "0xFEDCBA9876543210 0xFEDCBA9876543210". 8*19*2 - 1 = 303. This
+ plans ahead for a time where a HANDLE is 64 bit. */
+#define TRANS_MAX 350
char line[TRANS_MAX + 1];
char *linep;
int idx;
More information about the Gnupg-commits
mailing list