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 <asheesh@asheesh.org> Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

David Aguilar committed Feb 9, 2013 at 17:21 UTC d272c8497c2a38ecc9608f8580f7dc3587168168
1 file changed +1 -1
mergetools/p4merge
+1 -1
@@ -30,5 +30,5 @@ create_empty_file () {
30 empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
31 >"$empty_file"
32
33 - printf "$empty_file"
33 + printf "%s" "$empty_file"
34 }