Tom Lane wrote:
Teodor Sigaev <[EMAIL PROTECTED]> writes:
!                       pbuf = buf;
!                       while( !isspace( *pbuf ) )
!                               pbuf++;
!                       *pbuf = '\0';

Surely the loop needs to look like

        while (*pbuf && !isspace(*pbuf))
                pbuf++;

Yes.

But in any case, I am having difficulty in understanding why we are seeing a CR at all - the file should be opened in text mode, which should translate CR-LF in the file to a simple LF in the buffer. So regardless of the odd behavior of CVSNT, which presumabye caused this mess, it's rather strange.

Can someone please explain?

cheers

andrew



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

              http://archives.postgresql.org

Reply via email to