diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-11 13:49:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-11 13:49:42 +0000 |
commit | bbda7ca0787c3c03e64d29d39aa288051aff6676 (patch) | |
tree | 54a4ee2eaefab51ee836846d64bbf947086ba5bb /winsup | |
parent | e82d75cc2be978b31f6a605309cb94e93743a1aa (diff) | |
download | newlib-bbda7ca0787c3c03e64d29d39aa288051aff6676.zip newlib-bbda7ca0787c3c03e64d29d39aa288051aff6676.tar.gz newlib-bbda7ca0787c3c03e64d29d39aa288051aff6676.tar.bz2 |
Fix premature use of fdtab.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/syslog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc index 50ef80b..f7a4c35 100644 --- a/winsup/cygwin/syslog.cc +++ b/winsup/cygwin/syslog.cc @@ -361,7 +361,7 @@ syslog (int priority, const char *message, ...) interleaved, we must lock the first byte of the file This works on Win32 even if we created the file above. */ - HANDLE fHandle = fdtab[fileno (fp)]->get_handle (); + HANDLE fHandle = dtable[fileno (fp)]->get_handle (); if (LockFile (fHandle, 0, 0, 1, 0) == FALSE) { debug_printf ("failed to lock file %s", get_win95_event_log_path()); |