From 280b8a6a3b1fe3cd300997c1a757973e03b0d672 Mon Sep 17 00:00:00 2001 From: Tiago Vignatti Date: Mon, 21 Nov 2011 14:55:23 +0200 Subject: [PATCH] tty: fix command line parsing revert typo from evdev commit 8b568806. Signed-off-by: Tiago Vignatti --- compositor/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compositor/tty.c b/compositor/tty.c index 4989500e..5ed921ca 100644 --- a/compositor/tty.c +++ b/compositor/tty.c @@ -103,7 +103,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func, if (tty == NULL) return NULL; - snprintf(filename, sizeof filename, "/dev/tty0"); + snprintf(filename, sizeof filename, "/dev/tty%d", tty_nr); fprintf(stderr, "compositor: using %s\n", filename); memset(tty, 0, sizeof *tty);