From d51bca006a1912e341bf0e59f75d2aa14597bc4c Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 23 Dec 2021 04:37:12 +0000 Subject: [PATCH] make array bounds in unix2dosfn() prototype match function missed when unix2dosfn() was changed in the kernel with msdosfs_conv.c rev 1.15 in 2012 --- usr.sbin/makefs/msdos/direntry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/makefs/msdos/direntry.h b/usr.sbin/makefs/msdos/direntry.h index 1b671ebb30e..36e097f2ab1 100644 --- a/usr.sbin/makefs/msdos/direntry.h +++ b/usr.sbin/makefs/msdos/direntry.h @@ -1,4 +1,4 @@ -/* $OpenBSD: direntry.h,v 1.1 2016/10/18 17:05:30 natano Exp $ */ +/* $OpenBSD: direntry.h,v 1.2 2021/12/23 04:37:12 jsg Exp $ */ /* $NetBSD: direntry.h,v 1.13 1997/10/17 11:23:45 ws Exp $ */ /*- @@ -123,7 +123,7 @@ struct winentry { void unix2dostime(struct timespec *tsp, int minuteswest, u_int16_t *ddp, u_int16_t *dtp, u_int8_t *dhp); -int unix2dosfn(u_char *un, u_char dn[12], int unlen, u_int gen); +int unix2dosfn(u_char *un, u_char dn[11], int unlen, u_int gen); int unix2winfn(u_char *un, int unlen, struct winentry *wep, int cnt, int chksum); int winChkName(u_char *un, int unlen, struct winentry *wep, int chksum); -- 2.20.1