diff options
author | Asheesh Laroia <asheesh@asheesh.org> | 2013-02-08 01:16:24 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-08 21:10:06 (GMT) |
commit | 59cf706b2381d99b39c4d1daf62da9eeccf0ec13 (patch) | |
tree | c24b7f9a3bdd9e66dac70f31aadc78c222f569a1 /test-mktemp.c | |
parent | 7e2010537e96d0a1144520222f20ba1dc3d61441 (diff) | |
download | git-59cf706b2381d99b39c4d1daf62da9eeccf0ec13.zip git-59cf706b2381d99b39c4d1daf62da9eeccf0ec13.tar.gz git-59cf706b2381d99b39c4d1daf62da9eeccf0ec13.tar.bz2 |
git-mergetool: print filename when it contains %
If git-mergetool was invoked with files with a percent sign (%) in
their names, it would print an error. For example, if you were
calling mergetool on a file called "%2F":
printf: %2F: invalid directive
Do not pass random string to printf as if it were a valid format.
Use format string "%s" and pass the string as data to be formatted
instead.
Signed-off-by: Asheesh Laroia <asheesh@asheesh.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-mktemp.c')
0 files changed, 0 insertions, 0 deletions