changeset 1463:b64897a76c8a

* src/diag.cxx (diag_check_string): Allow '\t' in format strings.
author asl
date Thu, 08 Jan 2004 12:27:38 +0000
parents be755fe5817e
children a5b945097ade
files packages/infra/current/ChangeLog packages/infra/current/src/diag.cxx
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/infra/current/ChangeLog
+++ b/packages/infra/current/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-08  Jani Monoses <jani@iv.ro>
+
+	* src/diag.cxx (diag_check_string): Allow '\t' in format strings.
+	
 2004-01-05  Gary Thomas  <gary@mlbassoc.com>
 
 	* tests/fc_test.c: 
--- a/packages/infra/current/src/diag.cxx
+++ b/packages/infra/current/src/diag.cxx
@@ -239,11 +239,11 @@ static cyg_bool diag_check_string( const
         
         if( s-str > 2048 ) result = false;
 
-        /* We only really support CR, NL, and backspace at present. If
-         * we want to use tabs or other special chars, this test will
+        /* We only really support CR, NL, tab and backspace at present.
+	 * If we want to use other special chars, this test will
          * have to be expanded.  */
 
-        if( c == '\n' || c == '\r' || c == '\b' )
+        if( c == '\n' || c == '\r' || c == '\b' || c == '\t' )
             continue;
 
         /* Check for printable chars. This assumes ASCII */