This is the mail archive of the pthreads-win32@sourceware.cygnus.com mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug in ctime_r


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]