From 28947a53a343c096d1206a378d9718e2f205ff87 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Wed, 13 Aug 2025 14:03:41 -0400 Subject: [PATCH] Version v0.2.46 - fixed printf formatting error in pad display function --- otp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/otp.c b/otp.c index de78ba6..21c6c60 100644 --- a/otp.c +++ b/otp.c @@ -2948,10 +2948,9 @@ int handle_pads_menu(void) { for (int i = 0; i < pad_count; i++) { // Display checksum with prefix underlined - printf("\033[4m%.*s\033[0m%s %-*s %-12s %.1f%%\n", + printf("\033[4m%.*s\033[0m%-*s %-12s %-12s %.1f%%\n", prefix_lengths[i], pads[i].chksum, // Underlined prefix - pads[i].chksum + prefix_lengths[i], // Rest of checksum - 20 - (int)strlen(pads[i].chksum), "", // Padding for alignment + 20 - prefix_lengths[i], pads[i].chksum + prefix_lengths[i], // Rest of checksum with padding pads[i].size_str, pads[i].used_str, pads[i].percentage);