fix some fprintf args, ariel@oz.engr.sgi.com (Ariel Faigon)
This commit is contained in:
4
visudo.c
4
visudo.c
@@ -222,7 +222,7 @@ int main(argc, argv)
|
|||||||
*/
|
*/
|
||||||
if (strlen(Editor) + strlen(stmp) + 30 > sizeof(buf)) {
|
if (strlen(Editor) + strlen(stmp) + 30 > sizeof(buf)) {
|
||||||
(void) fprintf(stderr, "%s: Buffer too short (line %d).\n",
|
(void) fprintf(stderr, "%s: Buffer too short (line %d).\n",
|
||||||
__LINE__, Argv[0]);
|
Argv[0], __LINE__);
|
||||||
Exit(-1);
|
Exit(-1);
|
||||||
}
|
}
|
||||||
if (parse_error == TRUE)
|
if (parse_error == TRUE)
|
||||||
@@ -274,7 +274,7 @@ int main(argc, argv)
|
|||||||
if (yyparse() && parse_error != TRUE) {
|
if (yyparse() && parse_error != TRUE) {
|
||||||
(void) fprintf(stderr,
|
(void) fprintf(stderr,
|
||||||
"%s: Failed to parse temporary file (%s), unknown error.\n",
|
"%s: Failed to parse temporary file (%s), unknown error.\n",
|
||||||
Argv[0], stmp, sudoers);
|
Argv[0], stmp);
|
||||||
parse_error = TRUE;
|
parse_error = TRUE;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user