[Ttssh2-commit] [7897] 64bit時に警告が出ないように修正

scmno****@osdn***** scmno****@osdn*****
2019年 7月 31日 (水) 00:13:33 JST


Revision: 7897
          https://osdn.net/projects/ttssh2/scm/svn/commits/7897
Author:   zmatsuo
Date:     2019-07-31 00:13:33 +0900 (Wed, 31 Jul 2019)
Log Message:
-----------
64bit時に警告が出ないように修正

- 警告 C4477

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ssh.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ssh.c	2019-07-29 15:04:08 UTC (rev 7896)
+++ trunk/ttssh2/ttxssh/ssh.c	2019-07-30 15:13:33 UTC (rev 7897)
@@ -8676,7 +8676,7 @@
 			HANDLE thread;
 			unsigned int tid;
 
-			sscanf_s(data, "C%o %lld %s", &permission, &size, filename, sizeof(filename));
+			sscanf_s(data, "C%o %lld %s", &permission, &size, filename, (unsigned int)sizeof(filename));
 
 			// Windows\x82Ȃ̂Ńp\x81[\x83~\x83b\x83V\x83\x87\x83\x93\x82͖\xB3\x8E\x8B\x81B\x83T\x83C\x83Y\x82̂݋L\x98^\x81B
 			c->scp.filetotalsize = size;


Ttssh2-commit メーリングリストの案内