summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/fdisk.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 8580bec..eb26abb 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -117,8 +117,12 @@ static uint sector_size = DEFAULT_SECTOR_SIZE,
* Raw disk label. For DOS-type partition tables the MBR,
* with descriptions of the primary partitions.
*/
+#if (MAX_SECTOR_SIZE) > (BUFSIZ+1)
static char MBRbuffer[MAX_SECTOR_SIZE];
-
+#else
+# define MBRbuffer bb_common_bufsiz1
+#endif
+
#ifdef CONFIG_FEATURE_SUN_LABEL
static int sun_label; /* looking at sun disklabel */
#else