[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] Small bug in matchid.c + patch
From: |
Philippe Michel |
Subject: |
[Bug-gnubg] Small bug in matchid.c + patch |
Date: |
Thu, 3 Feb 2005 22:47:46 +0100 (CET) |
szID needs one more char for the final null. See for instance
positionid.c for accurate similar code.
*** matchid.c.orig Wed Feb 25 10:16:53 2004
--- matchid.c Thu Feb 3 22:22:02 2005
***************
*** 117,123 ****
*MatchIDFromKey( unsigned char auchKey[ 9 ] ) {
unsigned char *puch = auchKey;
! static char szID[ 12 ];
char *pch = szID;
static char aszBase64[ 64 ] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
--- 117,123 ----
*MatchIDFromKey( unsigned char auchKey[ 9 ] ) {
unsigned char *puch = auchKey;
! static char szID[ 13 ];
char *pch = szID;
static char aszBase64[ 64 ] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnubg] Small bug in matchid.c + patch,
Philippe Michel <=