diff options
author | Karel Zak | 2007-11-26 15:19:29 +0100 |
---|---|---|
committer | Karel Zak | 2007-11-26 15:19:29 +0100 |
commit | 7e5fad475258e0b77857011ebdccdcb045a4cd38 (patch) | |
tree | 9880031a7fa0b8ba6fe635a23e6c2cd2581bbc28 /fdisk | |
parent | namei: non-linux support (get_current_dir_name() and PATH_MAX) (diff) | |
download | kernel-qcow2-util-linux-7e5fad475258e0b77857011ebdccdcb045a4cd38.tar.gz kernel-qcow2-util-linux-7e5fad475258e0b77857011ebdccdcb045a4cd38.tar.xz kernel-qcow2-util-linux-7e5fad475258e0b77857011ebdccdcb045a4cd38.zip |
fdisk: non-linux support (MAXPATHLEN)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk')
-rw-r--r-- | fdisk/fdiskbsdlabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fdisk/fdiskbsdlabel.c b/fdisk/fdiskbsdlabel.c index 01912ab52..377b64ec4 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; |