MFS: Don't allow printf directives in PAGER

Obtained from:	OpenBSD
This commit is contained in:
Kris Kennaway 2000-07-07 00:24:13 +00:00
parent e98e26cd69
commit 08e61f6489
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=62726

View File

@ -634,7 +634,7 @@ int length;
if ((env_pager = getenv("PAGER")) == NULL) {
snprintf(cmdbuf, sizeof(cmdbuf), _PATH_PAGER, Lpp);
} else {
snprintf(cmdbuf, sizeof(cmdbuf), env_pager);
snprintf(cmdbuf, sizeof(cmdbuf), "%s", env_pager);
}
outf = popen(cmdbuf, "w");
if (!outf)