commit d61187bb70b4c8f9366223607138415b4c6d7a94
parent 07d81ad3a7d2a9e134595fff249b3ae89172d740
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 24 Dec 2020 00:07:21 -0800
Remove redundent slash in cextern()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.c b/main.c
@@ -509,7 +509,7 @@ cextern(int argc, const char **argv, int index, const char **item)
if (warg(1, -1, argc, argv))
return ERROR;
- snprintf(url, sizeof(url), "%s/%s", item[GI_HOST], item[GI_PATH]);
+ snprintf(url, sizeof(url), "%s%s", item[GI_HOST], item[GI_PATH]);
for (i = 0; i < argc; ++i)
if (strcmp(argv[i], "%") == 0)
argv[i] = url;