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>2000-09-04 21:52:42 +0400
committerChristopher Faylor <me@cgf.cx>2000-09-04 21:52:42 +0400
commitf76325499abbd5e5212cbe7b479008e3bf1b1a96 (patch)
tree929c38930f469b7d0e53193223c30101081f9ecf /winsup/cygwin/init.cc
parent9c136d7ea6c180419f55b166c9acfed2ac6e2221 (diff)
* path.cc (readlink): Check if buffer length is positive. Truncate output to
buffer length. Don't terminate buffer with '\0'.
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r--winsup/cygwin/init.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc
index 18342e080..f0c5a1cff 100644
--- a/winsup/cygwin/init.cc
+++ b/winsup/cygwin/init.cc
@@ -28,7 +28,7 @@ WINAPI dll_entry (HANDLE h, DWORD reason, void *static_load)
case DLL_THREAD_ATTACH:
if (user_data->threadinterface)
{
- if ( !TlsSetValue(user_data->threadinterface->reent_index,
+ if (!TlsSetValue(user_data->threadinterface->reent_index,
&user_data->threadinterface->reents))
api_fatal("Sig proc MT init failed\n");
}