Skip to content

Commit bab42be

Browse files
committed
Fix typos
1 parent 544b5ac commit bab42be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bb/tests/src/earlyInit.c

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <unistd.h>
1616
#include <assert.h>
1717
#include <bbapi.h>
18+
#include <errno.h>
1819

1920
int expectedRC = -1;
2021

flightlog/src/flightlog.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ int FL_CreateRegistry(FlightRecorderRegistry_t** reghandle, const char* name, co
229229
FlightRecorderFormatter_t* tmpfmt = (FlightRecorderFormatter_t*)((char*)reg + FLIGHTLOG_OFFSET + reg->flightsize * sizeof(FlightRecorderLog_t));
230230
memcpy(tmpfmt, fmt, sizeof(FlightRecorderFormatter_t) * numids);
231231
reg->num_ids = numids;
232-
reg->registryName[sizeof(reg->registryName)-1] = 0;
232+
((char*)reg->registryName)[sizeof(reg->registryName)-1] = 0;
233233
strncpy((char*)reg->registryName, name, sizeof(reg->registryName)-1);
234234

235-
reg->decoderName[sizeof(reg->decoderName)-1] = 0;
235+
((char*)reg->decoderName)[sizeof(reg->decoderName)-1] = 0;
236236
strncpy((char*)reg->decoderName, decoder, sizeof(reg->decoderName)-1);
237237
}
238238

0 commit comments

Comments
 (0)