Skip to content

Commit

Permalink
Unify integer format parameter in prompt.
Browse files Browse the repository at this point in the history
There was only single occurence of the prompt
message with %u. Let's use %d as anywhere else.
  • Loading branch information
oniko authored and mbroz committed Oct 9, 2024
1 parent e4bf1f9 commit e190309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_reencrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ static int fill_keyslot_passwords(struct crypt_device *cd,
break;
}
} else {
if (snprintf(msg, sizeof(msg), _("Enter passphrase for key slot %u: "), ARG_INT32(OPT_KEY_SLOT_ID)) < 0)
if (snprintf(msg, sizeof(msg), _("Enter passphrase for key slot %d: "), ARG_INT32(OPT_KEY_SLOT_ID)) < 0)
return -EINVAL;
r = init_passphrase(kp, kp_size, cd, msg, ARG_INT32(OPT_KEY_SLOT_ID));
}
Expand Down

0 comments on commit e190309

Please sign in to comment.