Permalink
Browse files

Try to make garbage strings not fuck up terminals

  • Loading branch information...
AmyBSOD committed Apr 1, 2018
1 parent 8789c46 commit 967008332607566ee8360fb929e6f6ce699d370c
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/pline.c
@@ -639,7 +639,9 @@ generate_garbage_string()
while (stringlength --> 0) {
#ifdef UNIX
tmpstr[0] = 31 + rnd(224);
tmpstrglyph:
tmpstr[0] = 32 + rnd(222);
while (tmpstr[0] >= 127 && tmpstr[0] <= 159) tmpstr[0] = 32 + rnd(222);
#else
tmpstr[0] = rnd(255);
#endif

0 comments on commit 9670083

Please sign in to comment.