Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit d272c84

Browse files
davvidgitster
authored andcommitted
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 <[email protected]> Signed-off-by: David Aguilar <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 950b568 commit d272c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mergetools/p4merge

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ create_empty_file () {
3030
empty_file="${TMPDIR:-/tmp}/git-difftool-p4merge-empty-file.$$"
3131
>"$empty_file"
3232

33-
printf "$empty_file"
33+
printf "%s" "$empty_file"
3434
}

0 commit comments

Comments
 (0)