oops that should have been enprintf()
This commit is contained in:
parent
b58951b4f0
commit
db2c54bee6
2
mktemp.c
2
mktemp.c
|
@ -43,7 +43,7 @@ main(int argc, char *argv[])
|
||||||
tmpdir = p;
|
tmpdir = p;
|
||||||
|
|
||||||
if (snprintf(tmppath, sizeof(tmppath), "%s/%s", tmpdir, template) >= sizeof(tmppath))
|
if (snprintf(tmppath, sizeof(tmppath), "%s/%s", tmpdir, template) >= sizeof(tmppath))
|
||||||
eprintf(EXIT_FAILURE, "path too long\n");
|
enprintf(EXIT_FAILURE, "path too long\n");
|
||||||
if (dflag) {
|
if (dflag) {
|
||||||
if (!mkdtemp(tmppath)) {
|
if (!mkdtemp(tmppath)) {
|
||||||
if (!qflag)
|
if (!qflag)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user