diff --git a/src/firejail/ls.c b/src/firejail/ls.c index f2ab1c1882c..6dc4904fce7 100644 --- a/src/firejail/ls.c +++ b/src/firejail/ls.c @@ -154,7 +154,7 @@ static void print_file_or_dir(const char *path, const char *fname) { // file size char *sz; - if (asprintf(&sz, "%d", (int) s.st_size) == -1) + if (asprintf(&sz, "%jd", (intmax_t) s.st_size) == -1) errExit("asprintf"); // file name