From 4f2cf52eff000e7efe05c2bc3de1792d5e767348 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 6 Jun 2013 11:45:52 +0200 Subject: [PATCH] Minor cleanup. --- helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.c b/helpers.c index e63d2c74..ad75f48f 100644 --- a/helpers.c +++ b/helpers.c @@ -542,7 +542,7 @@ pid_t run_getty(char *cmd, char *args[], int console) DFLSIG(sa, i, 0); while (!fexist(SYNC_SHUTDOWN)) { - static const char msg[] = "\nPlease press Enter to activate this console. "; + static const char msg[] = "\nPlease press Enter to activate this console."; if (fexist(SYNC_STOPPED)) { sleep(1); @@ -550,7 +550,7 @@ pid_t run_getty(char *cmd, char *args[], int console) } if (console) { - i = write(STDERR_FILENO, msg, sizeof(msg) - 1); + i = write(STDERR_FILENO, msg, sizeof(msg)); while (read(STDIN_FILENO, &c, 1) == 1 && c != '\n') continue; }