diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-01-08 11:16:58 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-08 11:16:58 -0800 |
commit | 480640eafc88aee47a125bf514d95182c21be09d (patch) | |
tree | 0efeb31d38993eb8f5677cdf0eb5d30bc809adb3 | |
parent | 59932be3446d757c813f17ea1701e9a731cde98b (diff) | |
parent | f7be59b4770a8a8b76c1d0612db409ce7e8d11f2 (diff) | |
download | git-480640eafc88aee47a125bf514d95182c21be09d.tar.gz git-480640eafc88aee47a125bf514d95182c21be09d.tar.xz |
Merge branch 'jc/mkstemp-more-careful-error-reporting' into maint
* jc/mkstemp-more-careful-error-reporting:
xmkstemp(): avoid showing truncated template more carefully
-rw-r--r-- | wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |