diff options
Diffstat (limited to 'src/xmldsig.c')
-rw-r--r-- | src/xmldsig.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xmldsig.c b/src/xmldsig.c index 8e156e2c..304a869b 100644 --- a/src/xmldsig.c +++ b/src/xmldsig.c @@ -918,13 +918,13 @@ xmlSecDecodeCmp(const xmlChar* encoded, const xmlChar* plain) { xmlSecAssert2(encoded != NULL, -1); xmlSecAssert2(plain != NULL, -1); - while(*plain != NULL) { - if(*encoded == NULL) + while(*plain != '\0') { + if(*encoded == '\0') return(-1); /* check encoded char is same with plain char */ if(*encoded == '%') { - if(*(encoded + 1) == NULL && *(encoded + 2) == NULL) + if(*(encoded + 1) == '\0' &&*(encoded + 2) == '\0') return(-1); if((int)*plain != @@ -984,7 +984,7 @@ xmlSecDSigCtxProcessReferences(xmlSecDSigCtxPtr dsigCtx, xmlNodePtr firstReferen xmlSecProxyCtxPtr pc = dsigCtx->skipReferences; while(pc != NULL) { - if(strncmp(refUri, pc->cache, xmlStrlen(refUri)) == 0) { + if(strncmp((char*)refUri, (char*)pc->cache, xmlStrlen(refUri)) == 0) { isInProxy = 1; xmlSecError(XMLSEC_ERRORS_HERE, NULL, |