From f1207346f0dc5e3295955a73a747c613274ad795 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Fri, 14 Aug 2009 10:45:17 +0200 Subject: [PATCH] Fix printf argument error to errx() --- lib/roken/rkpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/roken/rkpty.c b/lib/roken/rkpty.c index bff632f0f..2776c1318 100644 --- a/lib/roken/rkpty.c +++ b/lib/roken/rkpty.c @@ -120,7 +120,7 @@ open_pty(void) strlcpy(line, ptsname(master), sizeof(line)); slave = open(line, O_RDWR); if (slave < 0) - errx(1, "failed to open slave when using %s", q); + errx(1, "failed to open slave when using %s", *q); ioctl(slave, I_PUSH, "ptem"); ioctl(slave, I_PUSH, "ldterm");