extras/kdf-keys: fixed hexencode warning caused by wrong type.

This commit is contained in:
nerun 2023-06-26 10:12:36 -03:00 committed by Jaromil
parent 59d7331cb0
commit d8989e1955

View File

@ -41,7 +41,7 @@ int main(int argc, char *argv[]) {
} else { } else {
while( (read_bytes=fread(buf, sizeof(char), 2, stdin)) != 0) { while( (read_bytes=fread(buf, sizeof(char), 2, stdin)) != 0) {
if(read_bytes == 1) buf[1]='\0'; if(read_bytes == 1) buf[1]='\0';
sscanf(buf, "%x", &c); sscanf(buf, "%s", &c);
printf("%c", c); printf("%c", c);
} }
return 0; return 0;