MissouriMRDT / Autonomy_Software

Avoid array-to-pointer decay CXX-C1000
Anti-pattern
Minor
4 days ago14 days old
Array is implicitly decaying into a pointer
 67        // Format the current time in a format that can be used as a file name
 68        char cCurrentTime[80];
 69        size_t siTimeCharacters;
 70        siTimeCharacters = std::strftime(cCurrentTime, sizeof(cCurrentTime), "%Y%m%d-%H%M%S", tLocalTime); 71        if (siTimeCharacters == 0)
 72        {
 73            std::cerr << "Unable to format calender date & time (exceeds string length)" << std::endl;