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

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);