diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-02-16 08:50:19 +0100 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-02-20 12:22:23 +0800 |
commit | 179646d1c12d93202afad0bf84490778283ec2e8 (patch) | |
tree | 9bdfb33dbc314513f40627f44f3f4c4bd26d233f /src/timelog.cc | |
parent | 7de9854f4c1115611ee9cfa1a68987a1ec7dc905 (diff) | |
download | fork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.tar.gz fork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.tar.bz2 fork-ledger-179646d1c12d93202afad0bf84490778283ec2e8.zip |
Fix compiler warnings
minimizing use of deprecated API where possible.
Diffstat (limited to 'src/timelog.cc')
-rw-r--r-- | src/timelog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timelog.cc b/src/timelog.cc index 67791bd1..99c2dd36 100644 --- a/src/timelog.cc +++ b/src/timelog.cc @@ -55,7 +55,7 @@ namespace { curr->append_note(in_event.note.c_str(), *context.scope); char buf[32]; - std::sprintf(buf, "%lds", long((out_event.checkin - in_event.checkin) + std::snprintf(buf, 32, "%lds", long((out_event.checkin - in_event.checkin) .total_seconds())); amount_t amt; amt.parse(buf); |