summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>2001-05-18 14:07:51 +0000
committernik <nik@FreeBSD.org>2001-05-18 14:07:51 +0000
commitf6b3b57bdd72c15c5e3c1c930a156b71c42090ee (patch)
tree8515d1bd112fe6554409044e5e4dfbf890956acf /usr.bin
parent51b06abea89aac3dc428441750566d7c1cd366cd (diff)
downloadFreeBSD-src-f6b3b57bdd72c15c5e3c1c930a156b71c42090ee.zip
FreeBSD-src-f6b3b57bdd72c15c5e3c1c930a156b71c42090ee.tar.gz
I appear to be badly out of practice. Remember to flush the output stream
when mixing printf and write.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/scrshot/scrshot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/scrshot/scrshot.c b/usr.bin/scrshot/scrshot.c
index 2e285f4..13e18aa 100644
--- a/usr.bin/scrshot/scrshot.c
+++ b/usr.bin/scrshot/scrshot.c
@@ -72,6 +72,7 @@ main(int argc, char *argv[])
err(1, "ioctl(CONS_SCRSHOT)");
printf("SCRSHOT_%c%c%c%c", VERSION, 2, shot.xsize, shot.ysize);
+ fflush(stdout);
(void)write(STDOUT_FILENO, shot.buf,
shot.xsize * shot.ysize * sizeof(u_int16_t));
OpenPOWER on IntegriCloud