Skip to content

Commit

Permalink
Bugfix: use STDOUT_FILENO for TIOCGWINSZ
Browse files Browse the repository at this point in the history
azonenberg committed Mar 3, 2017
1 parent ee5a30b commit 4bf1057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STDLogSink.cpp
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ STDLogSink::STDLogSink(Severity min_severity)
if(isatty(STDOUT_FILENO))
{
struct winsize w;
ioctl(0, TIOCGWINSZ, &w);
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
m_termWidth = w.ws_col;
}
else

0 comments on commit 4bf1057

Please sign in to comment.