Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177383521
D36567.1794253744.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
574 B
Referenced Files
None
Subscribers
None
D36567.1794253744.diff
View Options
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c
--- a/lib/libc/stdtime/strftime.c
+++ b/lib/libc/stdtime/strftime.c
@@ -319,10 +319,10 @@
tm = *t;
mkt = mktime(&tm);
if (TYPE_SIGNED(time_t))
- (void) sprintf_l(buf, loc, "%ld",
- (long) mkt);
- else (void) sprintf_l(buf, loc, "%lu",
- (unsigned long) mkt);
+ (void) sprintf_l(buf, loc, "%lld",
+ (long long) mkt);
+ else (void) sprintf_l(buf, loc, "%llu",
+ (unsigned long long) mkt);
pt = _add(buf, pt, ptlim);
}
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 9, 7:49 PM (8 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41619861
Default Alt Text
D36567.1794253744.diff (574 B)
Attached To
Mode
D36567: Use %lld and %llu instead of %ld and %lu in time format
Attached
Detach File
Event Timeline