* fhandler.cc (fhandler_base::read): Remove superfluous check in

__small_printf format for strace.
This commit is contained in:
Bas van Gompel 2004-12-05 07:28:27 +00:00
parent 3a72ce9d12
commit d54b79d351
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-12-05 Bas van Gompel <cygwin-patch@bavag.tmfweb.nl>
* fhandler.cc (fhandler_base::read): Remove superfluous check in
__small_printf format for strace.
2004-12-05 Bas van Gompel <cygwin-patch@bavag.tmfweb.nl>
* fhandler.cc (fhandler_base::read): Don't debug_printf garbage when

View File

@ -754,8 +754,7 @@ fhandler_base::read (void *in_ptr, size_t& len)
for (int i = 0; i < copied_chars && i < 16; ++i)
{
unsigned char c = ((unsigned char *) ptr)[i];
/* >= 33 so space prints in hex */
__small_sprintf (p, c >= 33 && c <= 127 ? " %c" : " %p", c);
__small_sprintf (p, " %c", c);
p += strlen (p);
}
*p = '\0';