pgpHexStr() returns pointer to static buffer, return const char *

This commit is contained in:
Panu Matilainen 2008-01-10 13:35:03 +02:00
parent 6243ccd1e6
commit 76d8c76836
1 changed files with 1 additions and 1 deletions

View File

@ -1055,7 +1055,7 @@ char * pgpHexCvt(char *t, const uint8_t *s, size_t nbytes)
* @return hex formatted string
*/
static inline
char * pgpHexStr(const uint8_t *p, size_t plen)
const char * pgpHexStr(const uint8_t *p, size_t plen)
{
static char prbuf[8*BUFSIZ]; /* XXX ick */
char *t = prbuf;