Skip to content

Commit 480640e

Browse files
committed
Merge branch 'jc/mkstemp-more-careful-error-reporting' into maint
* jc/mkstemp-more-careful-error-reporting: xmkstemp(): avoid showing truncated template more carefully
2 parents 59932be + f7be59b commit 480640e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int xmkstemp(char *template)
229229
int saved_errno = errno;
230230
const char *nonrelative_template;
231231

232-
if (!template[0])
232+
if (strlen(template) != strlen(origtemplate))
233233
template = origtemplate;
234234

235235
nonrelative_template = absolute_path(template);

0 commit comments

Comments
 (0)