From 3e29d883fadfc3286adb93f70f8e914a3e0a0ff1 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 21 Apr 2014 11:08:34 +0200 Subject: [PATCH] tty.c:tty_start() - Fix strcmp() foobar from f6f2895, must use strncmp() Signed-off-by: Joachim Nilsson --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index f34d3044..7895f60c 100644 --- a/tty.c +++ b/tty.c @@ -138,7 +138,7 @@ void tty_start(finit_tty_t *tty) if (console && !strcmp(tty->name, console)) is_console = 1; - if (!strcmp(tty->name, _PATH_DEV)) { + if (!strncmp(tty->name, _PATH_DEV, strlen(_PATH_DEV))) { #if defined(GETTY_AGETTY) snprintf(line, sizeof(line), "%s %s %d %s", GETTY, tty->name, tty->baud, tty->term ?: ""); #elif defined(GETTY_BUSYBOX)