LIBGCRYPT-1-2-BRANCH libgcrypt/src (sexp.c)
cvs user wk
cvs at cvs.gnupg.org
Thu Apr 14 19:35:22 CEST 2005
Date: Thursday, April 14, 2005 @ 19:51:42
Author: wk
Path: /cvs/libgcrypt/libgcrypt/src
Tag: LIBGCRYPT-1-2-BRANCH
Modified: sexp.c
Do it also for isxdigit.
--------+
sexp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: libgcrypt/src/sexp.c
diff -u libgcrypt/src/sexp.c:1.40.2.2 libgcrypt/src/sexp.c:1.40.2.3
--- libgcrypt/src/sexp.c:1.40.2.2 Thu Apr 14 19:42:07 2005
+++ libgcrypt/src/sexp.c Thu Apr 14 19:51:42 2005
@@ -997,7 +997,7 @@
break;
case 'x':
- if (!((n > 2) && isxdigit(p[1]) && isxdigit(p[2])))
+ if (!((n > 2) && hexdigitp (p+1) && hexdigitp (p+2)))
{
*erroff = p - buffer;
/* Invalid hex value. */
More information about the Gnupg-commits
mailing list