From d749d510425786e77751b20d642ca7a0b89a4085 Mon Sep 17 00:00:00 2001 From: Stefan Haustein Date: Sat, 23 Mar 2019 22:33:10 +0100 Subject: [PATCH] Revert "Constant standard output stream" This reverts commit 543cebef37a5d1154a5265497dab437b400abfa7. --- src/main/cpp/tiv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index 8f89cdc..a5d6128 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -443,7 +443,7 @@ cimg_library::CImg load_rgb_CImg(const char * const filename) { int main(int argc, char* argv[]) { struct winsize w; - ioctl(0, TIOCGWINSZ, &w); + ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); int maxWidth = w.ws_col * 4; int maxHeight = w.ws_row * 8;