mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-11 09:29:53 +00:00
Use long long instead of long for image size (#383)
This commit is contained in:
parent
87640a7c2c
commit
79c5da9432
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user