[Ttssh2-commit] [3770] ZMODEM. LOGの16進ダンプ表示が途切れていたのを修正した。

svnno****@sourc***** svnno****@sourc*****
2010年 2月 4日 (木) 01:06:41 JST


Revision: 3770
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3770
Author:   yutakapon
Date:     2010-02-04 01:06:41 +0900 (Thu, 04 Feb 2010)

Log Message:
-----------
ZMODEM.LOGの16進ダンプ表示が途切れていたのを修正した。

Modified Paths:
--------------
    trunk/teraterm/ttpfile/zmodem.c


-------------- next part --------------
Modified: trunk/teraterm/ttpfile/zmodem.c
===================================================================
--- trunk/teraterm/ttpfile/zmodem.c	2010-02-03 11:29:40 UTC (rev 3769)
+++ trunk/teraterm/ttpfile/zmodem.c	2010-02-03 16:06:41 UTC (rev 3770)
@@ -81,6 +81,8 @@
 
 int ZRead1Byte(PFileVar fv, PZVar zv, PComVar cv, LPBYTE b)
 {
+	char *s;
+
   if (CommRead1Byte(cv,b) == 0)
     return 0;
 
@@ -88,9 +90,15 @@
   {
     if (fv->LogState==0)
     {
+		// Žc‚è‚ÌASCII•\Ž¦‚ðs‚¤
+		fv->FlushLogLineBuf = 1;
+		FTLog1Byte(fv,0);
+		fv->FlushLogLineBuf = 0;
+
       fv->LogState = 1;
       fv->LogCount = 0;
-      _lwrite(fv->LogFile,"\015\012<<<\015\012",7);
+	  s = "\015\012<<< Received\015\012";
+      _lwrite(fv->LogFile, s, strlen(s));
     }
     FTLog1Byte(fv,*b);
   }
@@ -104,6 +112,7 @@
 int ZWrite(PFileVar fv, PZVar zv, PComVar cv, PCHAR B, int C)
 {
   int i, j;
+  char *s;
 
   i = CommBinaryOut(cv,B,C);
 
@@ -111,9 +120,15 @@
   {
     if (fv->LogState!=0)
     {
+		// Žc‚è‚ÌASCII•\Ž¦‚ðs‚¤
+		fv->FlushLogLineBuf = 1;
+		FTLog1Byte(fv,0);
+		fv->FlushLogLineBuf = 0;
+
       fv->LogState = 0;
       fv->LogCount = 0;
-      _lwrite(fv->LogFile,"\015\012>>>\015\012",7);
+	  s = "\015\012Sending >>>\015\012";
+      _lwrite(fv->LogFile, s, strlen(s));
     }
     for (j = 0 ; j <= i-1 ; j++)
       FTLog1Byte(fv,B[j]);



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