Content-Length: 259030 | pFad | http://github.com/postgrespro/postgres/commit/8866ed9560576de9dec628d5bfdb1571ec8d8ef0

C3 Remove use of %z in sscanf. · postgrespro/postgres@8866ed9 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8866ed9560576de9dec628d5bfdb1571ec8d8ef0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy