[Ttssh2-commit] [4499] 警告の抑止。

svnno****@sourc***** svnno****@sourc*****
2011年 6月 15日 (水) 19:49:55 JST


Revision: 4499
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4499
Author:   yutakapon
Date:     2011-06-15 19:49:55 +0900 (Wed, 15 Jun 2011)

Log Message:
-----------
警告の抑止。
buffはたかだか20バイトであるため、intキャストで問題ない。

Modified Paths:
--------------
    trunk/TTXSamples/TTXttyrec/TTXttyrec.c


-------------- next part --------------
Modified: trunk/TTXSamples/TTXttyrec/TTXttyrec.c
===================================================================
--- trunk/TTXSamples/TTXttyrec/TTXttyrec.c	2011-06-15 10:12:32 UTC (rev 4498)
+++ trunk/TTXSamples/TTXttyrec/TTXttyrec.c	2011-06-15 10:49:55 UTC (rev 4499)
@@ -231,7 +231,7 @@
 	  if (pvar->rec_stsize) {
 	    _snprintf_s(buff, sizeof(buff), _TRUNCATE, "\033[8;%d;%dt",
 	                pvar->ts->TerminalHeight, pvar->ts->TerminalWidth);
-	    WriteData(pvar->fh, buff, strlen(buff));
+	    WriteData(pvar->fh, buff, (int)strlen(buff));
 	  }
 	}
       }



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