Ver código fonte

TimestampBufferSize is correct no -1 required

master
Pete McNeil 4 anos atrás
pai
commit
297527d3eb
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      SNFMulti.cpp

+ 1
- 1
SNFMulti.cpp Ver arquivo

@@ -299,7 +299,7 @@ string FileUTC(string FileName) {
char TimestampBfr[TimestampBufferSize]; // Timestamp buffer.

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

Carregando…
Cancelar
Salvar