Don't statically initialize buf to _PATH_DEV, _PATH_DEV always copied to
it in any case.
This commit is contained in:
parent
4119b6e581
commit
ba10c47105
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user