mirror of
git://git.suckless.org/sbase
synced 2024-12-24 16:02:54 +00:00
Break long line in mktemp(1)
This commit is contained in:
parent
0bc6b1377b
commit
f23409f65a
3
mktemp.c
3
mktemp.c
@ -42,7 +42,8 @@ main(int argc, char *argv[])
|
||||
if ((p = getenv("TMPDIR")))
|
||||
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("path too long\n");
|
||||
if (dflag) {
|
||||
if (!mkdtemp(tmppath)) {
|
||||
|
Loading…
Reference in New Issue
Block a user