summaryrefslogtreecommitdiff
path: root/libexec/comsat
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-09-07 02:17:29 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-09-07 02:17:29 +0000
commit163d0a5fb8d3b13ec13286572faa88b26fd2bcfe (patch)
tree6df70c014f0aea4d63b4e2c1b3ab381652b41b70 /libexec/comsat
parent011e76a24aca2039cb70eefc882ef68fae7a5677 (diff)
Notes
Diffstat (limited to 'libexec/comsat')
-rw-r--r--libexec/comsat/comsat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/comsat/comsat.c b/libexec/comsat/comsat.c
index acfde8faee1b..7508bb7c2213 100644
--- a/libexec/comsat/comsat.c
+++ b/libexec/comsat/comsat.c
@@ -230,7 +230,7 @@ notify(utp, file, offset, folder)
_exit(-1);
}
(void)tcgetattr(fileno(tp), &tio);
- cr = (tio.c_oflag & (OPOST|ONLCR) == (OPOST|ONLCR)) ? "\n" : "\n\r";
+ cr = ((tio.c_oflag & (OPOST|ONLCR)) == (OPOST|ONLCR)) ? "\n" : "\n\r";
(void)strncpy(name, utp->ut_name, sizeof(utp->ut_name));
name[sizeof(name) - 1] = '\0';
(void)fprintf(tp, "%s\007New mail for %s@%.*s\007 has arrived%s%s%s:%s----%s",