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;