mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01:00
2008-06-18 Marcus Brinkmann <marcus@g10code.de>
* sysutils.c (TRANS_MAX): Bump up to 350 to be on the safe side.
This commit is contained in:
parent
d9c588dc06
commit
df066f970f
@ -1,5 +1,7 @@
|
|||||||
2008-06-18 Marcus Brinkmann <marcus@g10code.de>
|
2008-06-18 Marcus Brinkmann <marcus@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
|
* sysutils.h (translate_table_init, translate_table_lookup): New
|
||||||
prototypes.
|
prototypes.
|
||||||
* sysutils.c: Include <ctype.h>.
|
* sysutils.c: Include <ctype.h>.
|
||||||
|
@ -314,7 +314,10 @@ static int fd_translate_len;
|
|||||||
void
|
void
|
||||||
translate_table_init (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 line[TRANS_MAX + 1];
|
||||||
char *linep;
|
char *linep;
|
||||||
int idx;
|
int idx;
|
||||||
|
Loading…
Reference in New Issue
Block a user