From 17766a8447976d313205427050563a23f725f255 Mon Sep 17 00:00:00 2001 From: Philip Heron Date: Thu, 11 Apr 2013 23:41:07 +0100 Subject: [PATCH] Callsigns 6 characters long where not being null terminated --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 4a28b4d..f42f43b 100644 --- a/main.c +++ b/main.c @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) case 'c': if(strlen(optarg) > 6) fprintf(stderr, "Warning: callsign is longer than 6 characters.\n"); - strncpy(callsign, optarg, 6); + strncpy(callsign, optarg, 7); break; case 'i': image_id = atoi(optarg); break; case 't': droptest = atoi(optarg); break;