mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

  1. diff -Nur screen-3.9.15.orig/ansi.c screen-3.9.15/ansi.c
  2. --- screen-3.9.15.orig/ansi.c 2003-03-13 12:14:53.000000000 +0100
  3. +++ screen-3.9.15/ansi.c 2003-11-28 18:42:24.000000000 +0100
  4. @@ -581,7 +581,7 @@
  5. {
  6. case '0': case '1': case '2': case '3': case '4':
  7. case '5': case '6': case '7': case '8': case '9':
  8. - if (curr->w_NumArgs < MAXARGS)
  9. + if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS)
  10. {
  11. if (curr->w_args[curr->w_NumArgs] < 100000000)
  12. curr->w_args[curr->w_NumArgs] =
  13. diff -Nur screen-3.9.15.orig/resize.c screen-3.9.15/resize.c
  14. --- screen-3.9.15.orig/resize.c 2002-11-08 17:31:51.000000000 +0100
  15. +++ screen-3.9.15/resize.c 2003-11-28 18:42:45.000000000 +0100
  16. @@ -680,6 +680,17 @@
  17. if (wi == 0)
  18. he = hi = 0;
  19. + if (wi > 1000)
  20. + {
  21. + Msg(0, "Window width too large, truncated");
  22. + wi = 1000;
  23. + }
  24. + if (he > 1000)
  25. + {
  26. + Msg(0, "Window height too large, truncated");
  27. + he = 1000;
  28. + }
  29. +
  30. if (p->w_width == wi && p->w_height == he && p->w_histheight == hi)
  31. {
  32. debug("ChangeWindowSize: No change.\n");