Ross Murray <rmurray(at)rgsc1(dot)rgsc(dot)nrcan(dot)gc(dot)ca> writes:
> char *conxinfo . . .
> . . .
> sprintf(conxinfo,"host=%s user=%s dbname=%s",argv[1],argv[2],argv[3]);
> . . .
Are you malloc'ing adequate space for the conxinfo string?
regards, tom lane