Fix printf argument error to errx()
This commit is contained in:
@@ -120,7 +120,7 @@ open_pty(void)
|
|||||||
strlcpy(line, ptsname(master), sizeof(line));
|
strlcpy(line, ptsname(master), sizeof(line));
|
||||||
slave = open(line, O_RDWR);
|
slave = open(line, O_RDWR);
|
||||||
if (slave < 0)
|
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, "ptem");
|
||||||
ioctl(slave, I_PUSH, "ldterm");
|
ioctl(slave, I_PUSH, "ldterm");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user