- The format specifiers for the literal % symbols in the help text
weren't correct, leading to vfprintf attempting to parse them, and
winding up hitting garbage pointers as a consequence, leading to a crash.
This commit is contained in:
Rene Gollent
2013-10-09 22:04:53 -04:00
parent 111e76b755
commit db74c31d28
+4 -4
View File
@@ -82,10 +82,10 @@ static const char* kUsage =
" -f <format>, --format <format>\n" " -f <format>, --format <format>\n"
" - Print the given format string, performing the following\n" " - Print the given format string, performing the following\n"
" replacements:\n" " replacements:\n"
" %fileName% - the package's canonical file name\n" " %%fileName%% - the package's canonical file name\n"
" %name% - the package name\n" " %%name%% - the package name\n"
" %version% - the package version\n" " %%version%% - the package version\n"
" %% - %\n" " %%%% - %%\n"
" \n - new line\n" " \n - new line\n"
" \t - tab\n" " \t - tab\n"
"\n" "\n"