mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
I appear to be badly out of practice. Remember to flush the output stream
when mixing printf and write.
This commit is contained in:
parent
5b5df07ddc
commit
34da77aac7
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue