I checked all the previous string handling errors and most of them were

Bruce Momjian <bruce@momjian.us>

Commit: a12b4e279bc12a7cd7b7d679fcac4689ac4aba7b
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-09-02T06:11:43Z
Releases: 7.3.1
I checked all the previous string handling errors and most of them were
already fixed by You. However there were a few left and attached patch
should fix the rest of them.

I used StringInfo only in 2 places and both of them are inside debug
ifdefs. Only performance penalty will come from using strlen() like all
the other code does.

I also modified some of the already patched parts by changing
snprintf(buf, 2 * BUFSIZE, ... style lines to
snprintf(buf, sizeof(buf), ... where buf is an array.

Jukka Holappa

Files