From 543cebef37a5d1154a5265497dab437b400abfa7 Mon Sep 17 00:00:00 2001 From: cabelo Date: Thu, 21 Mar 2019 22:38:06 -0300 Subject: [PATCH] Constant standard output stream --- 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 6296293..4c73db5 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -418,7 +418,7 @@ cimg_library::CImg load_rgb_CImg(const char * const filename) { int main(int argc, char* argv[]) { struct winsize w; - ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); + ioctl(0, TIOCGWINSZ, &w); int maxWidth = w.ws_col * 4; int maxHeight = w.ws_row * 8;