OpenSDE Packages Database (without history before r20070)
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.

50 lines
1.8 KiB

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