Fix a harmless format string bogon and mark a function as __printflike().
There is still one instance of non-constant format string use inside that function, but it's hard to fix. MFC after: 1 week
This commit is contained in:
parent
4567c8651d
commit
cab0fb4e48
@ -422,7 +422,7 @@ cmdhelp(int mode, int which)
|
||||
}
|
||||
};
|
||||
|
||||
fprintf(stderr, help[which][mode]);
|
||||
fprintf(stderr, "%s", help[which][mode]);
|
||||
}
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ int boolean_val(char const * str, int dflt);
|
||||
char const *boolean_str(int val);
|
||||
char *newstr(char const * p);
|
||||
|
||||
void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...);
|
||||
void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...) __printflike(4, 5);
|
||||
char *pw_pwcrypt(char *password);
|
||||
|
||||
extern const char *Modes[];
|
||||
|
Loading…
Reference in New Issue
Block a user