--- postgresql-7.1.3/src/bin/psql/mainloop.c~ Mon Mar 26 08:18:51 2001 +++ postgresql-7.1.3/src/bin/psql/mainloop.c Tue May 28 15:00:12 2002 @@ -379,7 +379,8 @@ { out_length = strlen(value); - new = malloc(len + out_length - (1 + in_length) + 1); + /* Allow for 'after' character also 2002-05-27 */ + new = malloc(len + out_length - (1 + in_length) + 1 + 1); if (!new) { psql_error("out of memory\n");