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.

36 lines
1.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ash/mkinit.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2005 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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- ./mkinit.c 1993-08-24 11:12:51.000000000 +0200
  18. +++ ./mkinit.c 2005-05-06 23:32:35.000000000 +0200
  19. @@ -349,7 +349,7 @@
  20. if (! amiddecls)
  21. addchar('\n', &decls);
  22. q = NULL;
  23. - for (p = line1 + 6 ; *p != '=' && *p != '/' ; p++);
  24. + for (p = line1 + 6 ; *p && *p != '=' && *p != '/' ; p++);
  25. if (*p == '=') { /* eliminate initialization */
  26. for (q = p ; *q && *q != ';' ; q++);
  27. if (*q == '\0')
  28. @@ -358,6 +358,7 @@
  29. while (p[-1] == ' ')
  30. p--;
  31. *p = '\0';
  32. + q[1] = 0;
  33. }
  34. }
  35. addstr("extern", &decls);