Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:> ! pbuf = buf;> ! while( !isspace( *pbuf ) )> ! pbuf++;> ! *pbuf = '\0';
Surely the loop needs to look like
while (*pbuf && !isspace(*pbuf)) pbuf++;
regards, tom lane