[pkg-opensc-commit] [pkcs11-helper] 217/253: build: fix strchr usage

Eric Dorland eric at moszumanska.debian.org
Fri Jan 6 23:39:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository pkcs11-helper.

commit 5d412bad609b1cac5ceb43d0eb314ed689c83e50
Author: Greg Troxel <gdt at ir.bbn.com>
Date:   Fri Nov 23 13:49:18 2012 +0200

    build: fix strchr usage
---
 lib/pkcs11h-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pkcs11h-util.c b/lib/pkcs11h-util.c
index ab6fd38..fbad33c 100644
--- a/lib/pkcs11h-util.c
+++ b/lib/pkcs11h-util.c
@@ -163,7 +163,7 @@ _pkcs11h_util_escapeString (
 
 	while (*s != '\x0') {
 
-		if (*s == '\\' || strchr (invalid_chars, *s) || !isgraph (*s)) {
+		if (*s == '\\' || strchr (invalid_chars, (unsigned char)*s) || !isgraph (*s)) {
 			if (t != NULL) {
 				if (n+4 > *max) {
 					rv = CKR_ATTRIBUTE_VALUE_INVALID;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pkcs11-helper.git



More information about the pkg-opensc-commit mailing list