1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../qtparted/parted-api.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -Nur qtparted-0.4.4-orig/src/qp_fswrap.cpp qtparted-0.4.4/src/qp_fswrap.cpp
18 --- qtparted-0.4.4-orig/src/qp_fswrap.cpp 2004-04-24 19:12:06.000000000 +0300
19 +++ qtparted-0.4.4/src/qp_fswrap.cpp 2006-09-13 10:35:49.000000000 +0300
20 @@ -1018,7 +1018,11 @@
21 /*---FAT32 WRAPPER---------------------------------------------------------------*/
22 QString QP_FSFat32::_get_label(PedPartition *part)
24 - char buffer[PED_SECTOR_SIZE];
25 +#ifdef PED_SECTOR_SIZE // PED_SECTOR_SIZE is gone in parted 1.7.x
26 + char *buffer=new char[PED_SECTOR_SIZE];
28 + char *buffer=new char[part->disk->dev->sector_size];
32 if (!QP_FSWrap::read_sector(part, 0, 1, buffer))