My Various Git Projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
950b568
)
p4merge: fix printf usage
author
David Aguilar
<davvid@gmail.com>
Sun, 10 Feb 2013 01:21:25 +0000
(17:21 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 10 Feb 2013 19:40:52 +0000
(11:40 -0800)
Do not use a random string as if it is a format string for printf
when showing it literally; instead feed it to '%s' format.
Reported-by: Asheesh Laroia <asheesh@asheesh.org>
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
mergetools/p4merge
patch
|
blob
|
history
diff --git
a/mergetools/p4merge
b/mergetools/p4merge
index
52f7c8f
..
8a36916
100644
(file)
--- a/
mergetools/p4merge
+++ b/
mergetools/p4merge
@@
-30,5
+30,5
@@
create_empty_file () {
empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
>"$empty_file"
- printf "$empty_file"
+ printf "
%s" "
$empty_file"
}