diff options
author | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2015-10-19 09:15:36 +0000 |
---|---|---|
committer | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2015-10-19 09:15:36 +0000 |
commit | 481385467ba50fc2c3f08164ecf356ad79f01dd9 (patch) | |
tree | 7d021904df8a352fe6ab0b0a23da92600ef9e0ef /usr.sbin | |
parent | 0b9fb83664c9dd956ce5beed1b2a84eb1cb5dbc5 (diff) |
Kill whitespace at eol.
Ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/delivery_lmtp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/delivery_lmtp.c b/usr.sbin/smtpd/delivery_lmtp.c index 52b01be071f..7d357bebb2b 100644 --- a/usr.sbin/smtpd/delivery_lmtp.c +++ b/usr.sbin/smtpd/delivery_lmtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: delivery_lmtp.c,v 1.11 2015/10/18 18:59:51 jung Exp $ */ +/* $OpenBSD: delivery_lmtp.c,v 1.12 2015/10/19 09:15:35 sunil Exp $ */ /* * Copyright (c) 2013 Ashish SHUKLA <ashish.is@lostca.se> @@ -150,10 +150,10 @@ lmtp_open(struct deliver *deliver) errx(1, "Invalid DATA reply: %s", buf); while ((len = getline(&buf, &sz, stdin)) != -1) { - if (len >= 2 && buf[len - 2] == '\r') - buf[len - 2] = '\0'; - else if (buf[len - 1] == '\n') - buf[len - 1] = '\0'; + if (len >= 2 && buf[len - 2] == '\r') + buf[len - 2] = '\0'; + else if (buf[len - 1] == '\n') + buf[len - 1] = '\0'; if (fprintf(fp, "%s%s\r\n", buf[0] == '.' ? "." : "", buf) < 0) errx(1, "fprintf failed"); |