git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bf2e70b) | patch
Avoid unportable usage of sscanf(UINT64_FORMAT).
2014年5月27日 02:23:29 +0000 (22:23 -0400)
2014年5月27日 02:23:29 +0000 (22:23 -0400)
commit 9d7ded0f4277f5c0063eca8e871a34e2355a8371
Avoid unportable usage of sscanf(UINT64_FORMAT).

On Mingw, it seems that scanf() doesn't necessarily accept the same format
codes that printf() does, and in particular it may fail to recognize %llu
even though printf() does. Since configure only probes printf() behavior
while setting up the INT64_FORMAT macros, this means it's unsafe to use
those macros with scanf(). We had only one instance of such a coding
pattern, in contrib/pg_stat_statements, so change that code to avoid
the problem.

Per buildfarm warnings. Back-patch to 9.0 where the troublesome code
was introduced.

Michael Paquier
contrib/pg_stat_statements/pg_stat_statements.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /