openbsd-ports/www/privoxy/patches/patch-urlmatch_c
sturm bd5cd2e258 import of privoxy-3.0.0
submitted by Dan Weeks <danimal@danimal.org>

Privoxy is a web proxy with advanced filtering capabilities for protecting
privacy, filtering web page content, managing cookies, controlling access,
and removing ads, banners, pop-ups and other obnoxious Internet junk.
Privoxy has a very flexible configuration and can be customized to suit
individual needs and tastes. Privoxy has application for both stand-alone
systems and multi-user networks.

naddy@ OK
2002-11-29 09:41:39 +00:00

13 lines
455 B
Plaintext

$OpenBSD: patch-urlmatch_c,v 1.1.1.1 2002/11/29 09:41:39 sturm Exp $
--- urlmatch.c.orig Sun Nov 17 12:20:12 2002
+++ urlmatch.c Sun Nov 17 12:33:11 2002
@@ -664,7 +664,7 @@ jb_err create_url_spec(struct url_spec *
return JB_ERR_MEMORY;
}
- sprintf(rebuf, "^(%s)", url->path);
+ snprintf(rebuf, sizeof(rebuf), "^(%s)", url->path);
errcode = regcomp(url->preg, rebuf,
(REG_EXTENDED|REG_NOSUB|REG_ICASE));