From 998d843f51a8be39bb65f60f208ce90baa349a27 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Sat, 4 Mar 2023 13:10:40 +0000 Subject: [PATCH] Tweak callsign length warning --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 8f1d405..110f59a 100644 --- a/main.c +++ b/main.c @@ -79,7 +79,9 @@ int main(int argc, char *argv[]) case 'n': type = SSDV_TYPE_NOFEC; break; case 'c': if(strlen(optarg) > 6) - fprintf(stderr, "Warning: callsign is longer than 6 characters.\n"); + { + fprintf(stderr, "Warning: callsign cropped to 6 characters.\n"); + } strncpy(callsign, optarg, 6); callsign[6] = '\0'; break;