diff --git a/src/tools/chdman.c b/src/tools/chdman.c index 621c55580ae..e9919bc9625 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -1698,7 +1698,7 @@ static void do_create_hd(parameters_t ¶ms) astring *size_str = params.find(OPTION_SIZE); if (size_str != NULL) { - if (sscanf(*size_str, "%d", &filesize) != 1) + if (sscanf(*size_str, "%"I64FMT"d", &filesize) != 1) report_error(1, "Invalid size string"); } }