jehanne: fix build (ioctl)

This commit is contained in:
2017-12-22 00:25:37 +01:00
parent 4fa1ec95ac
commit 15360a2bf8

View File

@ -69,7 +69,7 @@ PixelSized:
fd = open("/dev/wctl", OWRITE); fd = open("/dev/wctl", OWRITE);
if(fd < 0) if(fd < 0)
return 0; return 0;
i = snprint(buf, sizeof(buf), "resize -dx %su -dy %su", size->ws_xpixel, size->ws_ypixel); i = jehanne_snprint(buf, sizeof(buf), "resize -dx %su -dy %su", size->ws_xpixel, size->ws_ypixel);
write(fd, buf, i); write(fd, buf, i);
close(fd); close(fd);
return 1; return 1;