FreeBSD Bugzilla – Attachment 6583 Details for
Bug 14813
Perl POSIX::strftime bugfeature
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1011 bytes, created by
Valentin Nechayev
on 1999-11-10 19:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Valentin Nechayev
Created:
1999-11-10 19:20:00 UTC
Size:
1011 bytes
patch
obsolete
>--- src/contrib/perl5/ext/POSIX/POSIX.xs.orig Wed May 5 16:15:29 1999 >+++ src/contrib/perl5/ext/POSIX/POSIX.xs Wed Nov 10 20:04:30 1999 >@@ -3617,21 +3617,20 @@ > CODE: > { > char tmpbuf[128]; > struct tm mytm; > int len; >- init_tm(&mytm); /* XXX workaround - see init_tm() above */ >+ bzero(&mytm, sizeof(mytm)); > mytm.tm_sec = sec; > mytm.tm_min = min; > mytm.tm_hour = hour; > mytm.tm_mday = mday; > mytm.tm_mon = mon; > mytm.tm_year = year; > mytm.tm_wday = wday; > mytm.tm_yday = yday; > mytm.tm_isdst = isdst; >- (void) mktime(&mytm); > len = strftime(tmpbuf, sizeof tmpbuf, fmt, &mytm); > /* > ** The following is needed to handle to the situation where > ** tmpbuf overflows. Basically we want to allocate a buffer > ** and try repeatedly. The reason why it is so complicated >===}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14813
: 6583