Browse files

difftool--helper: 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 <>
  • Loading branch information...
davvid authored and gitster committed Feb 10, 2013
1 parent 59cf706 commit 2a9ccfff5553b8ab28eb5a172738cc9f3afadcd5
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -40,7 +40,7 @@ launch_merge_tool () {
# the user with the real $MERGED name before launching $merge_tool.
if should_prompt
- printf "\nViewing: '$MERGED'\n"
+ printf "\nViewing: '%s'\n" "$MERGED"
if use_ext_cmd
printf "Launch '%s' [Y/n]: " \

0 comments on commit 2a9ccff

Please sign in to comment.