]> err.no Git - yubikey-personalization/commitdiff
strlen returns a size_t
authorKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 11:58:12 +0000 (13:58 +0200)
committerKlas Lindfors <klas@yubico.com>
Tue, 18 Sep 2012 11:58:12 +0000 (13:58 +0200)
ykchalresp.c

index c307048b86228a46c33176a159283bed1923cb57..6693d538df209e836002baee990798ea90e137dc 100644 (file)
@@ -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",