svnno****@sourc*****
svnno****@sourc*****
2009年 6月 4日 (木) 17:16:16 JST
Revision: 3436 http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3436 Author: maya Date: 2009-06-04 17:16:16 +0900 (Thu, 04 Jun 2009) Log Message: ----------- r3433 の TTSSH の修正に合わせて Tera Term 側のコマンドラインも "" を " と解釈するようにした Modified Paths: -------------- trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2009-06-04 01:06:00 UTC (rev 3435) +++ trunk/teraterm/ttpset/ttset.c 2009-06-04 08:16:16 UTC (rev 3436) @@ -2651,17 +2651,31 @@ /* quoting char */ q = Source[i]; /* only '"' is used as quoting char */ - if (q != '"') - q = 0; - else + if (q == '"') i++; c = Source[i]; i++; j = 0; - while ((c != 0) && (c != q)) { - Dest[j] = c; - j++; + while ((c != 0)) { + if (c != '"') { + Dest[j] = c; + j++; + } + else { + if (q == '"' && Source[i] == '"') { + Dest[j] = c; + j++; + i++; + } + else if (q == '"' && Source[i] == '\0') { + break; + } + else { + Dest[j] = c; + j++; + } + } c = Source[i]; i++; }