svnno****@sourc*****
svnno****@sourc*****
2012年 2月 7日 (火) 23:23:28 JST
Revision: 4836 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4836 Author: maya Date: 2012-02-07 23:23:27 +0900 (Tue, 07 Feb 2012) Log Message: ----------- Kermit で送信する、各 Attribute の計算方法を修正 Modified Paths: -------------- trunk/teraterm/ttpfile/kermit.c -------------- next part -------------- Modified: trunk/teraterm/ttpfile/kermit.c =================================================================== --- trunk/teraterm/ttpfile/kermit.c 2012-02-07 09:38:09 UTC (rev 4835) +++ trunk/teraterm/ttpfile/kermit.c 2012-02-07 14:23:27 UTC (rev 4836) @@ -958,17 +958,17 @@ struct tm *date = localtime(&kv->FileTime); int len; len = strftime(t, sizeof(t), "%Y%m%d %H:%M:%S", date); - _snprintf_s(s, sizeof(s), _TRUNCATE, "#%d%s", len, t); + _snprintf_s(s, sizeof(s), _TRUNCATE, "#%c%s", KmtChar(len), t); strncat_s(buf, sizeof(buf), s, _TRUNCATE); } if ( (kv->FileAttrFlag & KMT_ATTR_MODE) != 0 ) { _snprintf_s(t, sizeof(t), _TRUNCATE, "%03o", kv->FileMode & 0777); - _snprintf_s(s, sizeof(s), _TRUNCATE, ",%d%s", strlen(t), t); + _snprintf_s(s, sizeof(s), _TRUNCATE, ",%c%s", KmtChar(strlen(t)), t); strncat_s(buf, sizeof(buf), s, _TRUNCATE); } if ( (kv->FileAttrFlag & KMT_ATTR_SIZE) != 0 ) { _snprintf_s(t, sizeof(t), _TRUNCATE, "%I64d", kv->FileSize); - _snprintf_s(s, sizeof(s), _TRUNCATE, "1%d%s", strlen(t), t); + _snprintf_s(s, sizeof(s), _TRUNCATE, "1%c%s", KmtChar(strlen(t)), t); strncat_s(buf, sizeof(buf), s, _TRUNCATE); }