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:
parent
314942312e
commit
641562393f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49857
1 changed files with 12 additions and 0 deletions
12
comms/conserver/files/patch-readcfg.c
Normal file
12
comms/conserver/files/patch-readcfg.c
Normal 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);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue