Skip to content

Commit

Permalink
tvdemo: TFileViewer: display null characters as spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Aug 10, 2020
1 parent a77042c commit 1157d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tvdemo/fileview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void TFileViewer::readFile( const char *fName )
{
if (i == lineSize)
line = (char *) realloc(line, (lineSize *= 2));
line[i++] = c;
line[i++] = c ? c : ' ';
fileToView.get( c );
}
line[i] = '\0';
Expand Down

0 comments on commit 1157d1c

Please sign in to comment.