From: Klas Lindfors Date: Tue, 18 Sep 2012 11:58:12 +0000 (+0200) Subject: strlen returns a size_t X-Git-Tag: v1.8.0~38 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e3700f0eca7f079cd0e34316dcdd7493fea217f;p=yubikey-personalization strlen returns a size_t --- diff --git a/ykchalresp.c b/ykchalresp.c index c307048..6693d53 100644 --- a/ykchalresp.c +++ b/ykchalresp.c @@ -123,7 +123,7 @@ static int parse_args(int argc, char **argv, if (hex_encoded) { static unsigned char decoded[SHA1_MAX_BLOCK_SIZE]; - int strl = strlen(argv[optind]); + size_t strl = strlen(argv[optind]); if (strl > sizeof(decoded) * 2) { fprintf(stderr, "Hex-encoded challenge too long (max %lu chars)\n",