aboutsummaryrefslogtreecommitdiffstats
path: root/term-utils/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/write.c')
-rw-r--r--term-utils/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/write.c b/term-utils/write.c
index 90eb18c67f..50f18dcd2d 100644
--- a/term-utils/write.c
+++ b/term-utils/write.c
@@ -275,7 +275,7 @@ static void do_write(const struct write_control *ctl)
tm = localtime(&now);
/* print greeting */
printf("\r\n\a\a\a");
- if (strcmp(login, pwuid))
+ if (strcmp(login, pwuid) != 0)
printf(_("Message from %s@%s (as %s) on %s at %02d:%02d ..."),
login, host, pwuid, ctl->src_tty_name,
tm->tm_hour, tm->tm_min);