Fix an off-by-one in printexpand() by leot - tscrape - twitter scraper | |
git clone git://git.codemadness.org/tscrape | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d4929d30226753c84a2ab5d8b703dd7df69eb4c1 | |
parent 57259fbc5868fc4c8225640aaca8fd496dd6fc6c | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 5 Jun 2020 17:17:17 +0200 | |
Fix an off-by-one in printexpand() by leot | |
Thanks leot! | |
Diffstat: | |
M tscrape.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/tscrape.c b/tscrape.c | |
@@ -182,7 +182,7 @@ printexpand(const char *s) | |
} | |
for (u = urls; u; u = u->next) { | |
if (!strncmp(s, u->url, u->url_len)) { | |
- s += u->url_len; | |
+ s += u->url_len - 1; | |
printescape(u->expanded_url); | |
break; | |
} |