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.

52 lines
1.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/screen/windowheight.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -Nur screen-3.9.15.orig/ansi.c screen-3.9.15/ansi.c
  20. --- screen-3.9.15.orig/ansi.c 2003-03-13 12:14:53.000000000 +0100
  21. +++ screen-3.9.15/ansi.c 2003-11-28 18:42:24.000000000 +0100
  22. @@ -581,7 +581,7 @@
  23. {
  24. case '0': case '1': case '2': case '3': case '4':
  25. case '5': case '6': case '7': case '8': case '9':
  26. - if (curr->w_NumArgs < MAXARGS)
  27. + if (curr->w_NumArgs >= 0 && curr->w_NumArgs < MAXARGS)
  28. {
  29. if (curr->w_args[curr->w_NumArgs] < 100000000)
  30. curr->w_args[curr->w_NumArgs] =
  31. diff -Nur screen-3.9.15.orig/resize.c screen-3.9.15/resize.c
  32. --- screen-3.9.15.orig/resize.c 2002-11-08 17:31:51.000000000 +0100
  33. +++ screen-3.9.15/resize.c 2003-11-28 18:42:45.000000000 +0100
  34. @@ -680,6 +680,17 @@
  35. if (wi == 0)
  36. he = hi = 0;
  37. + if (wi > 1000)
  38. + {
  39. + Msg(0, "Window width too large, truncated");
  40. + wi = 1000;
  41. + }
  42. + if (he > 1000)
  43. + {
  44. + Msg(0, "Window height too large, truncated");
  45. + he = 1000;
  46. + }
  47. +
  48. if (p->w_width == wi && p->w_height == he && p->w_histheight == hi)
  49. {
  50. debug("ChangeWindowSize: No change.\n");