[Ttssh2-commit] [5481] メモリの初期化漏れを修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2014年 2月 20日 (木) 00:47:30 JST


Revision: 5481
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/5481
Author:   maya
Date:     2014-02-20 00:47:29 +0900 (Thu, 20 Feb 2014)
Log Message:
-----------
メモリの初期化漏れを修正

Modified Paths:
--------------
    trunk/TTProxy/TTProxy.h

-------------- next part --------------
Modified: trunk/TTProxy/TTProxy.h
===================================================================
--- trunk/TTProxy/TTProxy.h	2014-02-18 13:42:36 UTC (rev 5480)
+++ trunk/TTProxy/TTProxy.h	2014-02-19 15:47:29 UTC (rev 5481)
@@ -134,7 +134,7 @@
 #if 1
 		// \x89\xF0\x90͏\x88\x97\x9D\x82\xCD ttxssh.c \x82\xE6\x82\xE8\x83R\x83s\x81[
 		buf = new char[param_len+1];
-		memset(buf, 0, buflen);
+		memset(buf, 0, param_len+1);
 		for (i=0; i<param_len; i++) {
 			if (inQuotes) {
 				// \x8C\xBB\x8D݈ʒu\x82\xAA"\x82̒\x86



Ttssh2-commit メーリングリストの案内
Back to archive index