Browse Source

TimestampBufferSize is correct no -1 required

master
Pete McNeil 4 years ago
parent
commit
297527d3eb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      SNFMulti.cpp

+ 1
- 1
SNFMulti.cpp View File

char TimestampBfr[TimestampBufferSize]; // Timestamp buffer. char TimestampBfr[TimestampBufferSize]; // Timestamp buffer.


size_t l = snprintf( // Format yyyymmddhhmmss size_t l = snprintf( // Format yyyymmddhhmmss
TimestampBfr, TimestampBufferSize-1,
TimestampBfr, TimestampBufferSize,
"%04d%02d%02d%02d%02d%02d", "%04d%02d%02d%02d%02d%02d",
FileNameTime.tm_year+1900, FileNameTime.tm_year+1900,
FileNameTime.tm_mon+1, FileNameTime.tm_mon+1,

Loading…
Cancel
Save