openbsd-ports/net/pptp/patches/patch-inststr_c
naddy f6b6062096 * Update maintainer email address.
* Add detailed option descriptions to pptp(8) man page.
* Move OpenBSD configuration examples from text file
  ${PREFIX}/share/doc/pptp/USING into pptp(8) man page,
  and remove patch to ${WRKSRC}/USING. Extend and
  revise examples while at it.
* Add patch to ${WRKSRC}/util.c to make pptp log normal
  informational messages with level LOG_INFO instead of LOG_NOTICE.
* Update pkg/DESCR with a new description based on upstream web site.
* Fix URL to list of pptp security flaws in pkg/MESSAGE.
* [Re-]Create patches with `make update-patches'.
* Add patch to ${WRKSRC}/pptp_gre.c to automatically enable
  the net.inet.gre.allow sysctl before trying to bind
  the GRE socket.
* Remove '@sysctl net.inet.gre.allow=1' from PLIST.

From: maintainer Stefan Sperling
2007-10-23 22:13:38 +00:00

13 lines
446 B
Plaintext

$OpenBSD: patch-inststr_c,v 1.2 2007/10/23 22:13:38 naddy Exp $
--- inststr.c.orig Mon Feb 13 04:07:42 2006
+++ inststr.c Tue Sep 18 07:24:08 2007
@@ -20,7 +20,7 @@ inststr(int argc, char **argv, char **environ, char *s
for (ptr = argv[0]; *ptr; *(ptr++) = '\0');
- strcpy(argv[0], src);
+ strlcpy(argv[0], src, sizeof(argv[0]));
} else
{
/* Stolen from the source to perl 4.036 (assigning to $0) */