Skip to content

Commit 21a2dba

Browse files
new signature in two new call sites
1 parent b1d4cd0 commit 21a2dba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ int freadMain(freadMainArgs _args) {
14181418
}
14191419
if (stat_buf.st_size > SIZE_MAX) {
14201420
close(fd); // # nocov
1421-
STOP(_("File size [%s] exceeds the address space: %s"), filesize_to_str(stat_buf.st_size), fnam); // # nocov
1421+
STOP(_("File size [%s] exceeds the address space: %s"), filesize_to_str((char[100]) {}, stat_buf.st_size), fnam); // # nocov
14221422
}
14231423
fileSize = (size_t) stat_buf.st_size;
14241424
if (fileSize == 0) {close(fd); STOP(_("File is empty: %s"), fnam);}
@@ -1454,7 +1454,7 @@ int freadMain(freadMainArgs _args) {
14541454
if (GetFileSizeEx(hFile,&liFileSize)==0) { CloseHandle(hFile); STOP(_("GetFileSizeEx failed (returned 0) on file: %s"), fnam); }
14551455
if (liFileSize.QuadPart > SIZE_MAX) {
14561456
CloseHandle(hFile); // # nocov
1457-
STOP(_("File size [%s] exceeds the address space: %s"), filesize_to_str(liFileSize.QuadPart), fnam); // # nocov
1457+
STOP(_("File size [%s] exceeds the address space: %s"), filesize_to_str((char[100]) {}, liFileSize.QuadPart), fnam); // # nocov
14581458
}
14591459
fileSize = (size_t)liFileSize.QuadPart;
14601460
if (fileSize==0) { CloseHandle(hFile); STOP(_("File is empty: %s"), fnam); }

0 commit comments

Comments
 (0)