From e5795f1541ffbc5643c8b6c09f202c21c8fab383 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 13 Aug 2000 04:46:54 +0000 Subject: Fix benign bugs due to missing format string in err() and warn(). Approved by: assar (vendor :-) --- crypto/kerberosIV/appl/bsd/rshd.c | 2 +- crypto/kerberosIV/kuser/klist.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto') diff --git a/crypto/kerberosIV/appl/bsd/rshd.c b/crypto/kerberosIV/appl/bsd/rshd.c index ed91feb..b750e72 100644 --- a/crypto/kerberosIV/appl/bsd/rshd.c +++ b/crypto/kerberosIV/appl/bsd/rshd.c @@ -596,7 +596,7 @@ doit(struct sockaddr_in *fromp) krb_afslog(0, 0); } execle(pwd->pw_shell, cp, "-c", cmdbuf, 0, envinit); - err(1, pwd->pw_shell); + err(1, "%s", pwd->pw_shell); } /* diff --git a/crypto/kerberosIV/kuser/klist.c b/crypto/kerberosIV/kuser/klist.c index 007c5f0..e0476e0 100644 --- a/crypto/kerberosIV/kuser/klist.c +++ b/crypto/kerberosIV/kuser/klist.c @@ -317,7 +317,7 @@ display_srvtab(char *file) printf("%-15s %-15s %-15s %d\n",serv,inst,rlm,vno); } if (count < 0) - warn(file); + warn("%s", file); close(stab); } -- cgit v1.1