aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/ksba-io-support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ksba-io-support.c b/common/ksba-io-support.c
index 352485ffa..ff5e49531 100644
--- a/common/ksba-io-support.c
+++ b/common/ksba-io-support.c
@@ -174,7 +174,7 @@ has_only_base64 (const unsigned char *line, int linelen)
{
if (*line == '\n' || (linelen > 1 && *line == '\r' && line[1] == '\n'))
break;
- if ( !strchr (bintoasc, *line) )
+ if ( !memchr (bintoasc, *line, sizeof (bintoasc)) )
return 0;
}
return 1; /* yes */