This is the mail archive of the
pthreads-win32@sourceware.cygnus.com
mailing list for the pthreas-win32 project.
Bug in ctime_r
- To: 'Pthreads-win32' <pthreads-win32 at sourceware dot cygnus dot com>
- Subject: Bug in ctime_r
- From: Erik Hensema <erik dot hensema at group2000 dot nl>
- Date: Wed, 20 Oct 1999 12:11:39 +0200
Hi,
I think the macro ctime_r defined in pthread.h is wrong. This is the
definition:
#define ctime_r( _clock, _buf ) \
( strcpy( (_buf), ctime( (_tm) ) ), \
(_buf) )
I think it should be:
#define ctime_r( _clock, _buf ) \
strcpy( (_buf), ctime( (_clock) ) )
--
Erik Hensema
Work: erik.hensema@group2000.nl
Home: erik@hensema.xs4all.nl
Unox, the worst operating system