2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +00:00

Only one space after a colon, not two, in printf's

This commit is contained in:
Todd C. Miller 1998-11-08 18:51:58 +00:00
parent 0aad2d5afd
commit 0b9e318b75
2 changed files with 5 additions and 5 deletions

View File

@ -237,7 +237,7 @@ static int check_timestamp()
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
sizeof(timestampfile)) {
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
_PATH_SUDO_TIMEDIR, user_name, p);
exit(1);
}
@ -245,7 +245,7 @@ static int check_timestamp()
#else
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
sizeof(timestampfile)) {
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
_PATH_SUDO_TIMEDIR, user_name);
exit(1);
}
@ -408,7 +408,7 @@ void remove_timestamp()
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + strlen(p) + 2 >
sizeof(timestampfile)) {
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
(void) fprintf(stderr, "%s: path too long: %s/%s.%s\n", Argv[0],
_PATH_SUDO_TIMEDIR, user_name, p);
exit(1);
}
@ -416,7 +416,7 @@ void remove_timestamp()
#else
if (sizeof(_PATH_SUDO_TIMEDIR) + strlen(user_name) + 1 >
sizeof(timestampfile)) {
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
(void) fprintf(stderr, "%s: path too long: %s/%s\n", Argv[0],
_PATH_SUDO_TIMEDIR, user_name);
exit(1);
}

2
sudo.c
View File

@ -460,7 +460,7 @@ static void load_globals(sudo_mode)
/* try as root... */
set_perms(PERM_ROOT, sudo_mode);
if (!getcwd(cwd, sizeof(cwd))) {
(void) fprintf(stderr, "%s: Can't get working directory!\n",
(void) fprintf(stderr, "%s: Can't get working directory!\n",
Argv[0]);
(void) strcpy(cwd, "unknown");
}