diff options
author | Andres Freund <andres@anarazel.de> | 2017-09-19 14:17:20 -0700 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2017-09-19 14:25:47 -0700 |
commit | 71edbb6f66f7139d6209334ef8734a122ba06b56 (patch) | |
tree | 7a8644d2b6a04c67fdf92ae3f31c8b31b7968bbf /src/backend/access/gist/gistget.c | |
parent | 54b6cd589ac2f5635a42511236a5eb7299e2dcaf (diff) | |
download | postgresql-71edbb6f66f7139d6209334ef8734a122ba06b56.tar.gz postgresql-71edbb6f66f7139d6209334ef8734a122ba06b56.zip |
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
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions