Fix a bogon where too many arguments are passed in a printf().

It is obvious which argument does not belong (maybe left from a older version?)

Submitted by:	brian
This commit is contained in:
David E. O'Brien 2001-11-08 17:57:53 +00:00
parent 314942312e
commit 641562393f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49857

View file

@ -0,0 +1,12 @@
--- etc/conserver/readcfg.c.orig Wed Aug 2 19:39:42 2000
+++ etc/conserver/readcfg.c Tue Jul 24 12:09:27 2001
@@ -194,7 +194,7 @@
if ('\000' != pGE->passwd[0] && 0 != strcmp(pcPass, pGE->passwd)) {
fprintf(stderr, "%s: %s(%d) group %d has more than one password, first taken\n", progname, pcFile, iLine, iG);
} else if ((int)strlen(pcPass) > MAXPSWDLEN) {
- fprintf(stderr, "%s: %s(%d) password too long (%d is the limit)\n", progname, pcFile, iLine, iG, MAXPSWDLEN);
+ fprintf(stderr, "%s: %s(%d) password too long (%d is the limit)\n", progname, pcFile, iLine, MAXPSWDLEN);
} else {
(void)strcpy(pGE->passwd, pcPass);
}