[Ttssh2-commit] [3435] r3433の問題を修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 6月 4日 (木) 10:06:00 JST


Revision: 3435
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3435
Author:   maya
Date:     2009-06-04 10:06:00 +0900 (Thu, 04 Jun 2009)

Log Message:
-----------
r3433の問題を修正

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


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2009-06-03 11:36:21 UTC (rev 3434)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2009-06-04 01:06:00 UTC (rev 3435)
@@ -1858,13 +1858,14 @@
 	}
 
 	// buf ‚ÉŽc‚肪‚ ‚ê‚ΉðÍ‚É“n‚·
+	//   +1‚·‚é‚ƍŌã‚Ì'\0'‚àÁ‚µ‚Ä‚µ‚Ü‚¤‚̂ŁAã‚Æ“¯‚¶‚Å‚Í‚¢‚¯‚È‚¢
 	if (strlen(buf) > 0) {
 		switch (parse_option(pvar, buf)) {
 		  case OPTION_CLEAR:
-			memset(start, ' ', (param + i) - start + 1);
+			memset(start, ' ', (param + i) - start);
 			break;
 		  case OPTION_REPLACE:
-			memset(start, ' ', (param + i) - start + 1);
+			memset(start, ' ', (param + i) - start);
 			buflen = strlen(buf);
 			memcpy(start, buf, buflen);
 			break;



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