Possible fix for lost characters.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1130 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1296,6 +1296,7 @@ receive_data(FILE *instr, FILE *outstr)
|
|||||||
while ((cnt = auth_read(fileno(instr), buf+cr_flag,
|
while ((cnt = auth_read(fileno(instr), buf+cr_flag,
|
||||||
sizeof(buf)-cr_flag)) > 0){
|
sizeof(buf)-cr_flag)) > 0){
|
||||||
byte_count += cnt;
|
byte_count += cnt;
|
||||||
|
cnt += cr_flag;
|
||||||
cr_flag = 0;
|
cr_flag = 0;
|
||||||
for(p = buf, q = buf; p < buf + cnt;){
|
for(p = buf, q = buf; p < buf + cnt;){
|
||||||
if(*p == '\n')
|
if(*p == '\n')
|
||||||
|
Reference in New Issue
Block a user