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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 54b6cd5) | patch
Avoid use of non-portable strnlen() in pgstat_clip_activity().
2017年9月19日 21:17:20 +0000 (14:17 -0700)
2017年9月19日 21:25:47 +0000 (14:25 -0700)
commit 71edbb6f66f7139d6209334ef8734a122ba06b56
Avoid use of non-portable strnlen() in pgstat_clip_activity().

The use of strnlen rather than strlen was just paranoia. Instead of
giving up on the paranoia, just implement the safeguard
differently. And add a comment explaining why we're careful.

Author: Andres Freund
Discussion: https://postgr.es/m/E1duOkJ-0001Mc-U5@gemulon.postgresql.org
src/backend/postmaster/pgstat.c diff | blob | blame | history
src/include/pgstat.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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