Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-05 05:45:42 +0300
committerChristopher Faylor <me@cgf.cx>2001-11-05 05:45:42 +0300
commit58eac090a3a948a9bcf57ec1b5e37cb407a20b85 (patch)
tree27a1bbb110258f8cf8dff161fc988aa0d3793a90
parente25e893d6b13fdb6c8af1aee7644cf54cad16623 (diff)
* 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 3c1119707..1949c5af3 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 e3b191788..389afeeb1 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;
}