[Ttssh2-commit] [3387] CRでも送信を行うように変更

svnno****@sourc***** svnno****@sourc*****
2009年 5月 11日 (月) 12:33:48 JST


Revision: 3387
          http://svn.sourceforge.jp/view?root=ttssh2&view=rev&rev=3387
Author:   doda
Date:     2009-05-11 12:33:47 +0900 (Mon, 11 May 2009)

Log Message:
-----------
CRでも送信を行うように変更

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


-------------- next part --------------
Modified: trunk/TTXSamples/TTXOutputBuffering/TTXOutputBuffering.c
===================================================================
--- trunk/TTXSamples/TTXOutputBuffering/TTXOutputBuffering.c	2009-05-10 12:42:04 UTC (rev 3386)
+++ trunk/TTXSamples/TTXOutputBuffering/TTXOutputBuffering.c	2009-05-11 03:33:47 UTC (rev 3387)
@@ -76,8 +76,9 @@
 			for (i=0; i<len; i++) {
 				switch (buf[i]) {
 				case '\n':
+				case '\r':
 					if (pvar->buff_used < BUFF_SIZE)
-						pvar->buff[pvar->buff_used++] = '\n';
+						pvar->buff[pvar->buff_used++] = buf[i];
 					wlen = pvar->origPsend(s, pvar->buff, pvar->buff_used, flags);
 					pvar->buff_used -= wlen;
 					if (wlen > 0 && wlen < pvar->buff_used) {



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