diff options
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | ace/OS_NS_stdlib.cpp | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index d893e689d99..7747f9ef5c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +Mon Oct 4 13:34:08 2004 Ossama Othman <ossama@dre.vanderbilt.edu> + + * ace/OS_NS_stdlib.cpp: + + Added missing "ace/OS_NS_ctype.h" include. + + (mkstemp_emulation): + + ACE_OS::rand_r() accepts a reference to an ACE_TCHAR, not a + point to one. Removed "address-of" "&" from ACE_OS::rand_r() + argument. + Mon Oct 4 14:22:03 2004 Martin Corino <mcorino@remedy.nl> * ace/OS_NS_stdlib.cpp: diff --git a/ace/OS_NS_stdlib.cpp b/ace/OS_NS_stdlib.cpp index 4ab01e98f68..6c9e5bca0d8 100644 --- a/ace/OS_NS_stdlib.cpp +++ b/ace/OS_NS_stdlib.cpp @@ -23,6 +23,7 @@ ACE_RCSID (ace, #if defined (ACE_LACKS_MKSTEMP) # include "ace/OS_NS_fcntl.h" +# include "ace/OS_NS_ctype.h" # include "ace/OS_NS_sys_time.h" # include <limits> @@ -642,7 +643,7 @@ ACE_OS::mkstemp_emulation (ACE_TCHAR * s) do { r = - static_cast<ACE_TCHAR> (coefficient * ACE_OS::rand_r (&seed)); + static_cast<ACE_TCHAR> (coefficient * ACE_OS::rand_r (seed)); } while (!ACE_OS::ace_isalnum (r)); |