Fix benign bugs due to missing format string in err() and warn().

Approved by:	assar (vendor :-)
This commit is contained in:
Kris Kennaway 2000-08-13 04:46:54 +00:00
parent 8e2795854b
commit 9c47a2dba1
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}
/*

View File

@ -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);
}