Skip to content

Commit

Permalink
extras/kdf-keys: fixed hexencode warning caused by wrong type.
Browse files Browse the repository at this point in the history
  • Loading branch information
nerun authored and jaromil committed Aug 24, 2023
1 parent 59d7331 commit d8989e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/kdf-keys/hexencode.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) {
} else {
while( (read_bytes=fread(buf, sizeof(char), 2, stdin)) != 0) {
if(read_bytes == 1) buf[1]='\0';
sscanf(buf, "%x", &c);
sscanf(buf, "%s", &c);
printf("%c", c);
}
return 0;
Expand Down

0 comments on commit d8989e1

Please sign in to comment.