Fix potentially dangerous uses of mkpath and git_path
commit058412d09748c90be996a70729b961adad084175
authorAlex Riesen <raa.lkml@gmail.com>
Sun, 26 Oct 2008 22:08:52 +0000 (26 23:08 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Oct 2008 05:25:09 +0000 (26 22:25 -0700)
tree2b47ac0423fde13e184d4384dfd82080fa738545
parent356af64d84076baaf90b0bf8adb7245771264e5a
Fix potentially dangerous uses of mkpath and git_path

Replace them with mksnpath/git_snpath and a local buffer
for the resulting string.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-for-each-ref.c