(asctime_internal): New function, derived from asctime_r. Takes
authordrepper <drepper>
Fri, 14 Oct 2005 15:12:07 +0000 (15:12 +0000)
committerdrepper <drepper>
Fri, 14 Oct 2005 15:12:07 +0000 (15:12 +0000)
commit59acbf9e0b178fb8614e945611cefe52ee366100
treec3f598abc5ebce887e52dc25c0a1205f47320499
parent70985257ed5c32b75288e9d24301ab604d2e954d
(asctime_internal): New function, derived from asctime_r.  Takes
additional parameter which is the buffer length.  Use snprintf instead
sprintf, if it overflows, fail.
(asctime_r): Call asctime_internal with 26 as buffer length.
(asctime): Call asctime_internal with length of internal buffer.
time/asctime.c