Smita Vijayakumar <smita.vijayakumar@globallogic.com> writes:
> While integrating C stub in stored procedure, I came across the
> following problem whenever the DB triggered the SP:
> "
> server closed the connection unexpectedly
> This probably means the server terminated abnormally
> before or while processing the request.
> My C code looks like this:
> str[str1Size]='\0';
Scribbling on pass-by-reference arguments is verboten. Scribbling past
the end of one is even worse.
regards, tom lane