mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Make two buffer variables static for now. It is not safe to
reference stack memory after return. MFC after: 2 weeks
This commit is contained in:
parent
cab9f71ffe
commit
5428273365
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253834
|
@ -446,7 +446,7 @@ swap_on_off_md(const char *name, char *mntops, int doingall)
|
|||
FILE *sfd;
|
||||
int fd, mdunit, error;
|
||||
const char *ret;
|
||||
char mdpath[PATH_MAX], linebuf[PATH_MAX];
|
||||
static char mdpath[PATH_MAX], linebuf[PATH_MAX];
|
||||
char *p, *vnodefile;
|
||||
size_t linelen;
|
||||
u_long ul;
|
||||
|
|
Loading…
Reference in a new issue