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.

32 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../qtparted/parted-1.7-fix.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./src/qp_fswrap.cpp.orig 2005-07-07 00:29:54.000000000 +0300
  17. +++ ./src/qp_fswrap.cpp 2006-12-15 05:25:20.281348500 +0200
  18. #Patch from Gentoo kevquinn
  19. @@ -1002,7 +1002,11 @@
  20. /*---FAT32 WRAPPER---------------------------------------------------------------*/
  21. QString QP_FSFat32::_get_label(PedPartition *part)
  22. {
  23. - char buffer[PED_SECTOR_SIZE];
  24. +#ifdef PED_SECTOR_SIZE // PED_SECTOR_SIZE is gone in parted 1.7.x
  25. + char *buffer=new char[PED_SECTOR_SIZE];
  26. +#else
  27. + char *buffer=new char[part->disk->dev->sector_size];
  28. +#endif
  29. char label[12];
  30. if (!QP_FSWrap::read_sector(part, 0, 1, buffer))