From: David Aguilar Date: Sun, 10 Feb 2013 01:21:25 +0000 (-0800) Subject: p4merge: fix printf usage X-Git-Tag: v1.8.2-rc0~12^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d272c8497c2a38ecc9608f8580f7dc3587168168;p=git p4merge: fix printf usage 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 Signed-off-by: David Aguilar Signed-off-by: Junio C Hamano --- diff --git a/mergetools/p4merge b/mergetools/p4merge index 52f7c8f705..8a36916567 100644 --- 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" }