1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Don't statically initialize buf to _PATH_DEV, _PATH_DEV always copied to

it in any case.
This commit is contained in:
Andrey A. Chernov 2003-06-24 22:20:06 +00:00
parent 4119b6e581
commit ba10c47105
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116797

View File

@ -52,7 +52,7 @@ __FBSDID("$FreeBSD$");
#include "libc_private.h"
static char buf[sizeof(_PATH_DEV) + MAXNAMLEN] = _PATH_DEV;
static char buf[sizeof(_PATH_DEV) + MAXNAMLEN];
static char *oldttyname(int, struct stat *);
static char *ttyname_threaded(int fd);
static char *ttyname_unthreaded(int fd);