diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-04 17:52:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-04 17:52:42 +0000 |
commit | f76325499abbd5e5212cbe7b479008e3bf1b1a96 (patch) | |
tree | 929c38930f469b7d0e53193223c30101081f9ecf /winsup/cygwin/pinfo.cc | |
parent | 9c136d7ea6c180419f55b166c9acfed2ac6e2221 (diff) | |
download | cygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.tar.gz cygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.tar.bz2 cygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.zip |
* 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/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 9ccb8675a..37a280899 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -96,7 +96,7 @@ struct sigaction& _pinfo::getsig(int sig) { #ifdef _MT_SAFE - if ( thread2signal ) + if (thread2signal) return thread2signal->sigs[sig]; return sigs[sig]; #else @@ -108,7 +108,7 @@ sigset_t& _pinfo::getsigmask () { #ifdef _MT_SAFE - if ( thread2signal ) + if (thread2signal) return *thread2signal->sigmask; return sig_mask; #else @@ -120,7 +120,7 @@ void _pinfo::setsigmask (sigset_t _mask) { #ifdef _MT_SAFE - if ( thread2signal ) + if (thread2signal) *(thread2signal->sigmask) = _mask; sig_mask=_mask; #else @@ -132,7 +132,7 @@ LONG * _pinfo::getsigtodo(int sig) { #ifdef _MT_SAFE - if ( thread2signal ) + if (thread2signal) return thread2signal->sigtodo + __SIGOFFSET + sig; return _sigtodo + __SIGOFFSET + sig; #else @@ -146,7 +146,7 @@ HANDLE _pinfo::getthread2signal() { #ifdef _MT_SAFE - if ( thread2signal ) + if (thread2signal) return thread2signal->win32_obj_id; return hMainThread; #else |