diff options
author | rsc <devnull@localhost> | 2006-03-20 02:25:59 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-03-20 02:25:59 +0000 |
commit | 17157e4aa85baea6c1503e2c95d98ed66a1596f1 (patch) | |
tree | 0d5170a9f88cb8f25e2d824d0b96f57b968d426a /src/cmd/upas | |
parent | 7bd7fd2f4f6fb39400f6f64feb7ec9cba89cf3a3 (diff) | |
download | plan9port-17157e4aa85baea6c1503e2c95d98ed66a1596f1.tar.gz plan9port-17157e4aa85baea6c1503e2c95d98ed66a1596f1.tar.bz2 plan9port-17157e4aa85baea6c1503e2c95d98ed66a1596f1.zip |
update lucida
Diffstat (limited to 'src/cmd/upas')
-rw-r--r-- | src/cmd/upas/smtp/smtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/upas/smtp/smtp.c b/src/cmd/upas/smtp/smtp.c index 0661f4c6..d3297dfa 100644 --- a/src/cmd/upas/smtp/smtp.c +++ b/src/cmd/upas/smtp/smtp.c @@ -754,6 +754,8 @@ getreply(void) reply = s_reset(reply); for(;;){ line = getcrnl(reply); + if(debug) + Bflush(&berr); if(line == 0) return -1; if(!isdigit(line[0]) || !isdigit(line[1]) || !isdigit(line[2])) @@ -761,8 +763,6 @@ getreply(void) if(line[3] != '-') break; } - if(debug) - Bflush(&berr); rv = atoi(line)/100; return rv; } @@ -999,6 +999,7 @@ getcrnl(String *s) case '\r': c = Bgetc(&bin); if(c == '\n'){ + case '\n': s_putc(s, c); if(debug) Bputc(&berr, c); |