diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-03-10 14:30:40 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-03-10 14:30:40 +0100 |
| commit | 6adb0a08c89a84ff7dc656e2cc379a100e22efe3 (patch) | |
| tree | 0939468e18a8fc7c2288407d9fcb8508af30e011 /Source/PltParser.c | |
| parent | baa647ad7caf95ea2619d8456bcfd0f04a08a719 (diff) | |
| download | airport-6adb0a08c89a84ff7dc656e2cc379a100e22efe3.tar.gz | |
* Menu.c: bugfix for PLT level list.
* Minor: added whitespace to "sizeof" operand.
Diffstat (limited to 'Source/PltParser.c')
| -rw-r--r-- | Source/PltParser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/PltParser.c b/Source/PltParser.c index 29d1692..772f715 100644 --- a/Source/PltParser.c +++ b/Source/PltParser.c @@ -239,7 +239,7 @@ bool PltParserLoadFile(char* strPath, TYPE_FLIGHT_DATA* ptrFlightData) strncpy(tMessage.strMessage, lineBufferPtr, MAX_MESSAGE_STR_SIZE); MessageCreate(&tMessage); - bzero(&tMessage, sizeof(tMessage)); + bzero(&tMessage, sizeof (tMessage)); } else { @@ -431,13 +431,13 @@ uint8_t* PltParserGenerateFile(TYPE_PLT_CONFIG* ptrPltConfig) { // Set departure flight - memcpy(&PltBuffer[i], "DEPARTURE", sizeof("DEPARTURE") * sizeof(uint8_t) ); + memcpy(&PltBuffer[i], "DEPARTURE", sizeof ("DEPARTURE") * sizeof (uint8_t) ); i += strlen("DEPARTURE"); } else { // Set arrival flight - memcpy(&PltBuffer[i], "ARRIVAL", sizeof("ARRIVAL") * sizeof(uint8_t) ); + memcpy(&PltBuffer[i], "ARRIVAL", sizeof ("ARRIVAL") * sizeof (uint8_t) ); i += strlen("ARRIVAL"); } } |
