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>
This commit is contained in:
parent
950b5680bd
commit
d272c8497c
@ -30,5 +30,5 @@ create_empty_file () {
|
|||||||
empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
|
empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
|
||||||
>"$empty_file"
|
>"$empty_file"
|
||||||
|
|
||||||
printf "$empty_file"
|
printf "%s" "$empty_file"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user