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.

62 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../glibc/2.2.3-string2.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. # --- SDE-COPYRIGHT-NOTE-END ---
  17. Add explicit casts to make sure that "+ 2" and "+ 4" increments
  18. to pointer byte-wise (and not 4-byte words or whatever else).
  19. --- ./string/bits/string2.h.old Tue Jun 12 12:52:46 2001
  20. +++ ./string/bits/string2.h Tue Jun 12 12:53:51 2001
  21. @@ -415,7 +415,7 @@
  22. break;
  23. case 3:
  24. __u->__usi = __src0_2;
  25. - __u = __extension__ ((void *) __u + 2);
  26. + __u = __extension__ (void *)((char *) __u + 2);
  27. __u->__uc = '\0';
  28. break;
  29. case 4:
  30. @@ -423,24 +423,24 @@
  31. break;
  32. case 5:
  33. __u->__ui = __src0_4;
  34. - __u = __extension__ ((void *) __u + 4);
  35. + __u = __extension__ (void *)((char *) __u + 4);
  36. __u->__uc = '\0';
  37. break;
  38. case 6:
  39. __u->__ui = __src0_4;
  40. - __u = __extension__ ((void *) __u + 4);
  41. + __u = __extension__ (void *)((char *) __u + 4);
  42. __u->__usi = __src4_2;
  43. break;
  44. case 7:
  45. __u->__ui = __src0_4;
  46. - __u = __extension__ ((void *) __u + 4);
  47. + __u = __extension__ (void *)((char *) __u + 4);
  48. __u->__usi = __src4_2;
  49. - __u = __extension__ ((void *) __u + 2);
  50. + __u = __extension__ (void *)((char *) __u + 2);
  51. __u->__uc = '\0';
  52. break;
  53. case 8:
  54. __u->__ui = __src0_4;
  55. - __u = __extension__ ((void *) __u + 4);
  56. + __u = __extension__ (void *)((char *) __u + 4);
  57. __u->__ui = __src4_4;
  58. break;
  59. }