diff --git a/apps/dgst.c b/apps/dgst.c index 4bb701551..09d093451 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -490,7 +490,7 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout, else { BIO_write(out,title,strlen(title)); - for (i=0; inum_dirs; j++) - if (strlen(ctx->dirs[j]) == len && + if (strlen(ctx->dirs[j]) == (size_t)len && strncmp(ctx->dirs[j],ss,(unsigned int)len) == 0) break; if (jnum_dirs)