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
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-loadcfg_c,v 1.1.1.1 2002/11/29 09:41:39 sturm Exp $
|
|
--- loadcfg.c.orig Sun Nov 17 12:48:16 2002
|
|
+++ loadcfg.c Sun Nov 17 12:49:47 2002
|
|
@@ -626,7 +626,7 @@ struct configuration_spec * load_config(
|
|
int vec_count;
|
|
char *vec[3];
|
|
|
|
- strcpy(tmp, buf);
|
|
+ strlcpy(tmp, buf, sizeof(tmp));
|
|
|
|
/* Copy command (i.e. up to space or tab) into cmd */
|
|
p = buf;
|
|
@@ -644,7 +644,7 @@ struct configuration_spec * load_config(
|
|
}
|
|
|
|
/* Copy the argument into arg */
|
|
- strcpy(arg, p);
|
|
+ strlcpy(arg, p, sizeof(arg));
|
|
|
|
/* Should never happen, but check this anyway */
|
|
if (*cmd == '\0')
|
|
@@ -1274,7 +1274,7 @@ struct configuration_spec * load_config(
|
|
* log-font-name fontnane
|
|
* *************************************************************************/
|
|
case hash_log_font_name :
|
|
- strcpy( g_szFontFaceName, arg );
|
|
+ strlcpy( g_szFontFaceName, arg , sizeof(g_szFontFaceName));
|
|
continue;
|
|
|
|
/* *************************************************************************
|