Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8866ed9

Browse files
committed
Remove use of %z in sscanf.
As in 9d7ded0, it causes warnings on some MinGW compilers.
1 parent 0099b94 commit 8866ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/modules/test_json_parser/test_json_parser_incremental.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ main(int argc, char **argv)
9696
switch (c)
9797
{
9898
case 'c': /* chunksize */
99-
sscanf(optarg, "%zu", &chunk_size);
99+
chunk_size = strtou64(optarg, NULL, 10);
100100
if (chunk_size > BUFSIZE)
101101
pg_fatal("chunk size cannot exceed %d", BUFSIZE);
102102
break;

0 commit comments

Comments
 (0)