* path.cc (readlink): Check if buffer length is positive. Truncate output to

buffer length.  Don't terminate buffer with '\0'.
This commit is contained in:
Christopher Faylor
2000-09-04 17:52:42 +00:00
parent 9c136d7ea6
commit f76325499a
14 changed files with 33 additions and 27 deletions

View File

@@ -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");
}