Tweak callsign length warning
This commit is contained in:
parent
69944cb29a
commit
998d843f51
4
main.c
4
main.c
|
@ -79,7 +79,9 @@ int main(int argc, char *argv[])
|
||||||
case 'n': type = SSDV_TYPE_NOFEC; break;
|
case 'n': type = SSDV_TYPE_NOFEC; break;
|
||||||
case 'c':
|
case 'c':
|
||||||
if(strlen(optarg) > 6)
|
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);
|
strncpy(callsign, optarg, 6);
|
||||||
callsign[6] = '\0';
|
callsign[6] = '\0';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue