summaryrefslogtreecommitdiff
path: root/usr.bin/msgs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-06 06:24:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-06 06:24:40 +0000
commit0e5d70a466a0dd3783ad2d5ccba4beb31b9389ce (patch)
treed74f586cf868945c5712d4c740f7b93010f4b1c3 /usr.bin/msgs
parentff88ac50048c91119fc890d49fd0f2178f131821 (diff)
snprintf with %s when copying the pager
Diffstat (limited to 'usr.bin/msgs')
-rw-r--r--usr.bin/msgs/msgs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/msgs/msgs.c b/usr.bin/msgs/msgs.c
index f9e8368a711..e17be79f5ca 100644
--- a/usr.bin/msgs/msgs.c
+++ b/usr.bin/msgs/msgs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: msgs.c,v 1.15 1999/08/17 09:13:16 millert Exp $ */
+/* $OpenBSD: msgs.c,v 1.16 2000/07/06 06:24:39 deraadt Exp $ */
/* $NetBSD: msgs.c,v 1.7 1995/09/28 06:57:40 tls Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)msgs.c 8.2 (Berkeley) 4/28/95";
#else
-static char rcsid[] = "$OpenBSD: msgs.c,v 1.15 1999/08/17 09:13:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: msgs.c,v 1.16 2000/07/06 06:24:39 deraadt Exp $";
#endif
#endif /* not lint */
@@ -645,7 +645,7 @@ int length;
if ((env_pager = getenv("PAGER")) == NULL || *env_pager == '\0') {
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)