Opened 8 years ago
Closed 8 years ago
#5709 closed Bug (fixed)
Fix an instance of time_t printing
Reported by: | naddy | Owned by: | jordan |
---|---|---|---|
Priority: | Normal | Milestone: | 2.90 |
Component: | libtransmission | Version: | 2.83 |
Severity: | Normal | Keywords: | |
Cc: |
Description
Variables of type time_t cannot be printed with %ld, because time_t may be a larger type than long. (It is long long on OpenBSD.) So, cast to long long and print with %lld. Patch attached.
Alternatively, you could use intmax_t and %jd.
Attachments (1)
Change History (3)
Changed 8 years ago by naddy
comment:1 Changed 8 years ago by jordan
- Milestone changed from None Set to 2.90
- Status changed from new to assigned
comment:2 Changed 8 years ago by jordan
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Looks good to me. Added to trunk in r14311.