]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libfrog: cvt_u64 should use strtoull, not strtoll
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
committerEric Sandeen <sandeen@redhat.com>
Tue, 25 Jun 2019 21:04:42 +0000 (17:04 -0400)
commitb089256c3a0a5bcd62c5e9e9d93f7e7cbac2b31e
tree16d9c6d205cc7429f97212e71a3314f079438cae
parentb6ad9957a3e2c8d486a3efd37c2785c757edc25e
libfrog: cvt_u64 should use strtoull, not strtoll

cvt_u64 converts a string to an unsigned 64-bit number, so it should use
strtoull, not strtoll because we don't want negative numbers here.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libfrog/convert.c