diff options
| author | Philip Heron <phil@sanslogic.co.uk> | 2013-04-11 23:41:07 +0100 |
|---|---|---|
| committer | Philip Heron <phil@sanslogic.co.uk> | 2013-04-11 23:41:07 +0100 |
| commit | 17766a8447976d313205427050563a23f725f255 (patch) | |
| tree | 6e3c199be97c2ba8ed77a077fd4f535041aa43aa | |
| parent | 31e984897016eb662edf9682286f7e736f356099 (diff) | |
Callsigns 6 characters long where not being null terminated
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
