../../testcases/t_fseeko64.c: In function 'testread':
../../testcases/t_fseeko64.c:35:28: warning: 'calloc' sizes specified with
'sizeof' in the earlier argument and not in the later argument
[-Wcalloc-transposed-args]
35 | readbuff = calloc(sizeof(char),strlen(writebuf) + 1);
| ^~~~
../../testcases/t_fseeko64.c:35:28: note: earlier argument should specify
number of elements, later size of each element
Signed-off-by: Martin Storsjö <[email protected]>
---
mingw-w64-crt/testcases/t_fseeko64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-crt/testcases/t_fseeko64.c
b/mingw-w64-crt/testcases/t_fseeko64.c
index 55188ec54..0e68e7399 100644
--- a/mingw-w64-crt/testcases/t_fseeko64.c
+++ b/mingw-w64-crt/testcases/t_fseeko64.c
@@ -32,7 +32,7 @@ static int testread(const char *path){
char *readbuff;
int ret;
- readbuff = calloc(sizeof(char),strlen(writebuf) + 1);
+ readbuff = calloc(strlen(writebuf) + 1, sizeof(char));
if (!readbuff) return 1;
fd = fopen(path, "r+bc");
--
2.43.0
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public