瀏覽代碼

Removed \0 at end of format string in Timestamp().


git-svn-id: https://svn.microneil.com/svn/SNFClient/trunk@4 51592d22-3d51-405e-a108-f9da3ab4961f
adeniz_1
adeniz 15 年之前
父節點
當前提交
2780bac38a
共有 2 個檔案被更改,包括 5 行新增1 行删除
  1. 4
    0
      SNFClient/ChangeLog
  2. 1
    1
      SNFClient/main.cpp

+ 4
- 0
SNFClient/ChangeLog 查看文件

@@ -1,3 +1,7 @@
2009-05-26 Alban Deniz <adeniz@skidmark.localdomain>

* main.cpp (Timestamp): Removed \0 at end of format string.

2009-05-23 Alban Deniz <adeniz@skidmark.localdomain>

* Makefile.am (LIBS): Search SNFMulti library before CodeDweller.

+ 1
- 1
SNFClient/main.cpp 查看文件

@@ -45,7 +45,7 @@ string Timestamp(time_t t) {
char TimestampBfr[20]; // Create a small buffer.
tm* gmt; // Get a ptr to a tm structure.
gmt = gmtime(&t); // Fill it with UTC.
sprintf(TimestampBfr,"%04d%02d%02d%02d%02d%02d\0", // Format yyyymmddhhmmss
sprintf(TimestampBfr,"%04d%02d%02d%02d%02d%02d", // Format yyyymmddhhmmss
gmt->tm_year+1900,
gmt->tm_mon+1,
gmt->tm_mday,

Loading…
取消
儲存