diff options
-rw-r--r-- | builtin/config.c | 2 | ||||
-rw-r--r-- | test-urlmatch-normalization.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/builtin/config.c b/builtin/config.c index c046f54829..ae199e9f75 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -404,7 +404,7 @@ static int get_urlmatch(const char *var, const char *url) config.cb = &values; if (!url_normalize(url, &config.url)) - die(config.url.err); + die("%s", config.url.err); config.section = dup_downcase(var); section_tail = strchr(config.section, '.'); diff --git a/test-urlmatch-normalization.c b/test-urlmatch-normalization.c index 2603899bfe..090bf219a7 100644 --- a/test-urlmatch-normalization.c +++ b/test-urlmatch-normalization.c @@ -3,7 +3,7 @@ int main(int argc, char **argv) { - const char *usage = "test-urlmatch-normalization [-p | -l] <url1> | <url1> <url2>"; + const char usage[] = "test-urlmatch-normalization [-p | -l] <url1> | <url1> <url2>"; char *url1, *url2; int opt_p = 0, opt_l = 0; @@ -27,7 +27,7 @@ int main(int argc, char **argv) } if (argc < 2 || argc > 3) - die(usage); + die("%s", usage); if (argc == 2) { struct url_info info; @@ -42,7 +42,7 @@ int main(int argc, char **argv) } if (opt_p || opt_l) - die(usage); + die("%s", usage); url1 = url_normalize(argv[1], NULL); url2 = url_normalize(argv[2], NULL); |