Skip to content

Commit 9b7f7b9

Browse files
committed
Correct sizeof logFileName
1 parent 607ec4d commit 9b7f7b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/menuMessages.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void beginLogging(const char *customFileName)
365365
}
366366
else
367367
{
368-
strncpy(logFileName, customFileName, sizeof(fileName) - 1);
368+
strncpy(logFileName, customFileName, sizeof(logFileName) - 1);
369369
}
370370

371371
//Allocate the ubxFile

0 commit comments

Comments
 (0)