aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-05 02:45:42 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-05 02:45:42 +0000
commit58eac090a3a948a9bcf57ec1b5e37cb407a20b85 (patch)
tree27a1bbb110258f8cf8dff161fc988aa0d3793a90
parente25e893d6b13fdb6c8af1aee7644cf54cad16623 (diff)
downloadnewlib-58eac090a3a948a9bcf57ec1b5e37cb407a20b85.zip
newlib-58eac090a3a948a9bcf57ec1b5e37cb407a20b85.tar.gz
newlib-58eac090a3a948a9bcf57ec1b5e37cb407a20b85.tar.bz2
* dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV due to
incorrect parameter placement.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dtable.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3c11197..1949c5a 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2001-11-04 Christopher Faylor <cgf@redhat.com>
+ * dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV
+ due to incorrect parameter placement.
+
+2001-11-04 Christopher Faylor <cgf@redhat.com>
+
* fhandler.h (fhandler_pipe::broken_pipe): Renamed from saweof.
(fhandler_pipe::set_eof): Reflect above change.
* pipe.cc (fhandler_pipe::fhandler_pipe): Ditto.
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index e3b1917..389afee 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -329,7 +329,7 @@ dtable::build_fhandler (int fd, DWORD dev, const char *name, int unit)
fh = NULL;
}
- debug_printf ("%s - fd %d, fh %p", fd, fh);
+ debug_printf ("fd %d, fh %p", fd, fh);
return fd >= 0 ? (fds[fd] = fh) : fh;
}