Don't call warn() with no format string.
This commit is contained in:
parent
0c4d24a78f
commit
b7ffba17f8
@ -244,10 +244,10 @@ doshell(av)
|
||||
login_tty(slave);
|
||||
if (av[0]) {
|
||||
execvp(av[0], av);
|
||||
warn(av[0]);
|
||||
warn("%s", av[0]);
|
||||
} else {
|
||||
execl(shell, shell, "-i", NULL);
|
||||
warn(shell);
|
||||
warn("%s", shell);
|
||||
}
|
||||
fail();
|
||||
}
|
||||
|
@ -102,7 +102,7 @@ process(file)
|
||||
} else {
|
||||
soee = fopen(file, "r");
|
||||
if (soee == NULL) {
|
||||
warn(file);
|
||||
warn("%s", file);
|
||||
return(-1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user