* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when
copied_chars is zero.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2004-12-05  Bas van Gompel  <cygwin-patch@bavag.tmfweb.nl> | ||||
|  | ||||
| 	* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when | ||||
| 	copied_chars is zero. | ||||
|  | ||||
| 2004-12-03  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* environ.cc (environ_init): Alloc space for TERM if it is not set, | ||||
|   | ||||
| @@ -758,6 +758,7 @@ fhandler_base::read (void *in_ptr, size_t& len) | ||||
| 	  __small_sprintf (p, c >= 33 && c <= 127 ? " %c" : " %p", c); | ||||
| 	  p += strlen (p); | ||||
| 	} | ||||
|       *p = '\0'; | ||||
|       debug_printf ("read %d bytes (%s%s)", copied_chars, buf, | ||||
| 		    copied_chars > 16 ? " ..." : ""); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user