瀏覽代碼

Replace sprintf with snprintf (to address g++ warnings).

adeniz_1
Alban Deniz 1 年之前
父節點
當前提交
83ab35b32f
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      SNFMulti.cpp

+ 3
- 1
SNFMulti.cpp 查看文件

@@ -298,7 +298,9 @@ string FileUTC(string FileName) {

char TimestampBfr[20]; // Timestamp buffer.

sprintf(TimestampBfr,"%04d%02d%02d%02d%02d%02d", // Format yyyymmddhhmmss
size_t l = snprintf( // Format yyyymmddhhmmss
TimestampBfr, sizeof(TimestampBfr),
"%04d%02d%02d%02d%02d%02d",
FileNameTime.tm_year+1900,
FileNameTime.tm_mon+1,
FileNameTime.tm_mday,

Loading…
取消
儲存