X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ftmpnam.c;h=010cf039aac07ee84759c5f5b6950821b787fbec;hb=eb0e8fa0b1960cff4bd65ebefc798f70273b0bc9;hp=6099b74b4c80f261c14201d6c0f62eea010674c3;hpb=507a9fa6ff9948eb7d858467b7be2cb1dcf15d03;p=musl diff --git a/src/stdio/tmpnam.c b/src/stdio/tmpnam.c index 6099b74b..010cf039 100644 --- a/src/stdio/tmpnam.c +++ b/src/stdio/tmpnam.c @@ -26,5 +26,5 @@ char *tmpnam(char *s) n = ts.tv_nsec ^ (unsigned)&s ^ (unsigned)s; snprintf(s, L_tmpnam, "/tmp/t%x-%x", a_fetch_add(&index, 1), n); } while (!__syscall(SYS_access, s, F_OK) && try++=MAXTRIES ? 0 : s; }