From 7e5fad475258e0b77857011ebdccdcb045a4cd38 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 26 Nov 2007 15:19:29 +0100 Subject: [PATCH] fdisk: non-linux support (MAXPATHLEN) Signed-off-by: Karel Zak --- fdisk/fdiskbsdlabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdisk/fdiskbsdlabel.c b/fdisk/fdiskbsdlabel.c index 01912ab5..377b64ec 100644 --- a/fdisk/fdiskbsdlabel.c +++ b/fdisk/fdiskbsdlabel.c @@ -515,7 +515,7 @@ static void xbsd_write_bootstrap (void) { char *bootdir = BSD_LINUX_BOOTDIR; - char path[MAXPATHLEN]; + char path[sizeof(BSD_LINUX_BOOTDIR) + 1 + 2 + 4]; /* BSD_LINUX_BOOTDIR + / + {sd,wd} + boot */ char *dkbasename; struct xbsd_disklabel dl; char *d, *p, *e; -- 2.39.5