Skip to content

Commit

Permalink
difftool--helper: fix printf usage
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davvid authored and gitster committed Feb 10, 2013
1 parent 59cf706 commit 2a9ccff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-difftool--helper.sh
Expand Up @@ -40,7 +40,7 @@ launch_merge_tool () {
# the user with the real $MERGED name before launching $merge_tool.
if should_prompt
then
printf "\nViewing: '$MERGED'\n"
printf "\nViewing: '%s'\n" "$MERGED"
if use_ext_cmd
then
printf "Launch '%s' [Y/n]: " \
Expand Down

0 comments on commit 2a9ccff

Please sign in to comment.