From: jsg Date: Thu, 23 Dec 2021 04:37:12 +0000 (+0000) Subject: make array bounds in unix2dosfn() prototype match function X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d51bca006a1912e341bf0e59f75d2aa14597bc4c;p=openbsd 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 --- 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);