diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-10-24 08:20:24 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-10-24 14:54:12 +0200 |
commit | c0119027b1f3b8caeab8db6f90edfc096725333f (patch) | |
tree | 57bc65ee74a2b6b3524d99a680e8f8890c6ec881 /termo | |
parent | 3934d9b1f90b354aed7a072103ef1c58e581cd9d (diff) | |
download | nncmpp-c0119027b1f3b8caeab8db6f90edfc096725333f.tar.gz nncmpp-c0119027b1f3b8caeab8db6f90edfc096725333f.tar.xz nncmpp-c0119027b1f3b8caeab8db6f90edfc096725333f.zip |
Improve the MPD time parser
- reject negative values, which strtoul() happily accepts
- deal with an arbitrary number of decimal digits
- don't return milliseconds when we fail to parse seconds
Diffstat (limited to 'termo')
0 files changed, 0 insertions, 0 deletions