Use long long instead of long for image size (#383)

This commit is contained in:
Uwe Seimet 2021-10-26 15:41:17 +02:00 committed by GitHub
parent 87640a7c2c
commit 79c5da9432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ bool RascsiImage::CreateImage(int fd, const PbCommand& command)
off_t len;
try {
len = stoul(size);
len = stoull(size);
}
catch(const invalid_argument& e) {
return ReturnStatus(fd, false, "Can't create image file '" + filename + "': Invalid file size " + size);