Commit in reactos/apps/tests/oskittcp on MAIN
tcptest.cpp+10-111.5 -> 1.6
clean up/simplify 'type' command some more and don't append command-terminating carriage-return to the output buffer.

reactos/apps/tests/oskittcp
tcptest.cpp 1.5 -> 1.6
diff -u -r1.5 -r1.6
--- tcptest.cpp	21 Sep 2004 04:06:15 -0000	1.5
+++ tcptest.cpp	22 Sep 2004 13:55:07 -0000	1.6
@@ -270,22 +270,21 @@
 			char* dst = p;
 			while ( *src )
 			{
-				if ( *src == '\\' )
+				char c = *src++;
+				if ( c == '\r' || c == '\n' ) break;
+				if ( c == '\\' )
 				{
-					src++;
-					char c = *src++;
+					c = *src++;
 					switch ( c )
 					{
-					case 'b': *dst++ = '\b'; break;
-					case 'n': *dst++ = '\n'; break;
-					case 'r': *dst++ = '\r'; break;
-					case 't': *dst++ = '\t'; break;
-					case 'v': *dst++ = '\v'; break;
-					default: *dst++ = c; break;
+					case 'b': c = '\b'; break;
+					case 'n': c = '\n'; break;
+					case 'r': c = '\r'; break;
+					case 't': c = '\t'; break;
+					case 'v': c = '\v'; break;
 					}
 				}
-				else
-					*dst++ = *src++;
+				*dst++ = c;
 			}
 			*dst = '\0';
 			if ( (err = OskitTCPSend ( conn, (OSK_PCHAR)p, strlen(p), (OSK_UINT*)&bytin, 0 ))
CVSspam 0.2.8