Skip to content

Commit

Permalink
minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
datajerk committed Apr 9, 2017
1 parent 686ac49 commit 35da6e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified bin/text2page
Binary file not shown.
Binary file modified bin/text2page.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions text2page.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ int main()
while((c = getchar()) != EOF) {
if(c == '\r') // windows trash
continue;
if(columns > 40) // user didn't read the docs
if(columns > 39) // user didn't read the docs
continue;
if(lines > 24) // ditto
if(lines > 23) // ditto
break;
if(c == '\n') { // end of line
columns=0;
Expand Down

0 comments on commit 35da6e5

Please sign in to comment.