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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy