]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-copy: use correct data type for max_bytes 2878/head
authorMartin Pitt <martin.pitt@ubuntu.com>
Mon, 21 Mar 2016 13:55:30 +0000 (14:55 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 21 Mar 2016 13:58:30 +0000 (14:58 +0100)
commitfa13cf9e218ae0bb32ad169d0e83b007e1cb5dea
tree539abf4210eb0e1b8efcc76d6c49b146a6630f2d
parent68de79d6a42ac6da4268ac48b699a6cd553afc14
test-copy: use correct data type for max_bytes

copy_bytes() and the comparisons in test_copy_bytes_regular_file() expect an
uint64_t, not a size_t. On 32 bit architectures the latter is 32 bit, leading
to truncation errors.

Fixes regression from commit 7a827fcb.
src/test/test-copy.c