4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-21 00:07:36 +08:00

* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when

copied_chars is zero.
This commit is contained in:
Bas van Gompel 2004-12-05 01:53:47 +00:00
parent e9efc27020
commit 8b6d072355
2 changed files with 6 additions and 0 deletions

View File

@ -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,

View File

@ -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 ? " ..." : "");
}