aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorBas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>2004-12-05 01:53:47 +0000
committerBas van Gompel <cygwin-patch.buzz@bavag.tmfweb.nl>2004-12-05 01:53:47 +0000
commit8b6d072355d7858f044a3b077c09d35b00546934 (patch)
tree2992c09026d2eacbdc210dbac39968b72d56d063 /winsup
parente9efc270208bd07af2520231ec71f35f3e886f31 (diff)
downloadnewlib-8b6d072355d7858f044a3b077c09d35b00546934.zip
newlib-8b6d072355d7858f044a3b077c09d35b00546934.tar.gz
newlib-8b6d072355d7858f044a3b077c09d35b00546934.tar.bz2
* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when
copied_chars is zero.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7a453be..98d5f36 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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,
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 2a2e2f8..dabc2f1 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -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 ? " ..." : "");
}