Fix printf argument error to errx()

This commit is contained in:
Love Hornquist Astrand
2009-08-14 10:45:17 +02:00
parent a72efaea19
commit f1207346f0

View File

@@ -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");