diff --git a/src/raspberrypi/rascsi_image.cpp b/src/raspberrypi/rascsi_image.cpp index 2cf5687a..95c5edbf 100644 --- a/src/raspberrypi/rascsi_image.cpp +++ b/src/raspberrypi/rascsi_image.cpp @@ -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);