From a76718dddd2f5a50f79cc37995ef346e9111dca9 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 23 Dec 2021 02:12:52 +0000 Subject: [PATCH] make array bounds in unix2dosfn() prototype match function missed when unix2dosfn() was changed with msdosfs_conv.c rev 1.15 in 2012 --- sys/msdosfs/direntry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/msdosfs/direntry.h b/sys/msdosfs/direntry.h index 33f524b5646..ff6161e6220 100644 --- a/sys/msdosfs/direntry.h +++ b/sys/msdosfs/direntry.h @@ -1,4 +1,4 @@ -/* $OpenBSD: direntry.h,v 1.7 2015/10/23 10:45:31 krw Exp $ */ +/* $OpenBSD: direntry.h,v 1.8 2021/12/23 02:12:52 jsg Exp $ */ /* $NetBSD: direntry.h,v 1.13 1997/10/17 11:23:45 ws Exp $ */ /*- @@ -125,7 +125,7 @@ struct winentry { void unix2dostime(struct timespec *tsp, u_int16_t *ddp, u_int16_t *dtp, u_int8_t *dhp); void dos2unixtime(u_int dd, u_int dt, u_int dh, struct timespec *tsp); int dos2unixfn(u_char dn[11], u_char *un, int lower); -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); int win2unixfn(struct winentry *wep, struct dirent *dp, int chksum); -- 2.20.1