bd5cd2e258
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
22 lines
802 B
Plaintext
22 lines
802 B
Plaintext
$OpenBSD: patch-actions_c,v 1.1.1.1 2002/11/29 09:41:39 sturm Exp $
|
|
--- actions.c.orig Sun May 26 08:13:16 2002
|
|
+++ actions.c Sun Nov 17 12:55:23 2002
|
|
@@ -1194,7 +1194,7 @@ static int load_one_actions_file(struct
|
|
init_action(cur_action);
|
|
|
|
/* trim { */
|
|
- strcpy(actions_buf, buf + 1);
|
|
+ strlcpy(actions_buf, buf + 1, sizeof(actions_buf));
|
|
|
|
/* check we have a trailing } and then trim it */
|
|
end = actions_buf + strlen(actions_buf) - 1;
|
|
@@ -1294,7 +1294,7 @@ static int load_one_actions_file(struct
|
|
|
|
new_alias->name = strdup(buf);
|
|
|
|
- strcpy(actions_buf, start);
|
|
+ strlcpy(actions_buf, start, sizeof(actions_buf));
|
|
|
|
if (get_actions(actions_buf, alias_list, new_alias->action))
|
|
{
|