diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-30 18:08:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-30 18:08:58 -0700 |
commit | 98b35e2c749614446b916230148d66857e8a09f3 (patch) | |
tree | 3cf15ee4e22a7ebf84e92b019a26ef424d540857 /builtin-tag.c | |
parent | Fix potentially dangerous uses of mkpath and git_path (diff) | |
parent | Use git_pathdup instead of xstrdup(git_path(...)) (diff) | |
download | tgif-98b35e2c749614446b916230148d66857e8a09f3.tar.xz |
Merge branch 'ar/maint-mksnpath' into ar/mksnpath
* ar/maint-mksnpath:
Use git_pathdup instead of xstrdup(git_path(...))
git_pathdup: returns xstrdup-ed copy of the formatted path
Fix potentially dangerous use of git_path in ref.c
Add git_snpath: a .git path formatting routine with output buffer
Conflicts:
builtin-revert.c
refs.c
rerere.c
Diffstat (limited to 'builtin-tag.c')
-rw-r--r-- | builtin-tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-tag.c b/builtin-tag.c index b13fa34d8c..efd77231ff 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -283,7 +283,7 @@ static void create_tag(const unsigned char *object, const char *tag, int fd; /* write the template message before editing: */ - path = xstrdup(git_path("TAG_EDITMSG")); + path = git_pathdup("TAG_EDITMSG"); fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600); if (fd < 0) die("could not create file '%s': %s", |