From 6adb0a08c89a84ff7dc656e2cc379a100e22efe3 Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sat, 10 Mar 2018 14:30:40 +0100 Subject: * Menu.c: bugfix for PLT level list. * Minor: added whitespace to "sizeof" operand. --- Source/PltParser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/PltParser.c') 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"); } } -- cgit v1.2.3