From: Karel Zak Date: Mon, 26 Nov 2007 14:19:29 +0000 (+0100) Subject: fdisk: non-linux support (MAXPATHLEN) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5fad475258e0b77857011ebdccdcb045a4cd38;p=util-linux fdisk: non-linux support (MAXPATHLEN) Signed-off-by: Karel Zak --- 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;