Revision: ftp-utils--devo--1.0--patch-25
Archive: lord@emf.net--2003
Creator: Tom Lord <lord@emf.net>
Date: Sun Mar  2 11:25:15 PST 2003
Standard-date: 2003-03-02 19:25:15 GMT
Summary: fixed a loop error in wftp-client.c
Keywords: 
New-files: {arch}/ftp-utils/ftp-utils--devo/ftp-utils--devo--1.0/lord@emf.net--2003/patch-log/patch-25
Modified-files: ChangeLog wftp/wftp-client.c
New-patches: lord@emf.net--2003/ftp-utils--devo--1.0--patch-25


Fixed a loop error in wftp-client.c.

     -               end_burst = str_chr_index_n (bufpos, buffered, '\r');
     +                continue;

`end_burst' could be 0 in which case more text needs to be buffered.
The old code assumed `end_burst' could not be 0.

The loop overall is based on computing `end_burst' and responding 
to the case when it is 0 (end of line is not yet buffered) -- 
so `continue' fixes the bug.

