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;