diff --git a/wrapper.c b/wrapper.c index 68739aaa3b..a066e2ee9e 100644 --- a/wrapper.c +++ b/wrapper.c @@ -229,7 +229,7 @@ int xmkstemp(char *template) int saved_errno = errno; const char *nonrelative_template; - if (!template[0]) + if (strlen(template) != strlen(origtemplate)) template = origtemplate; nonrelative_template = absolute_path(template);