openbsd-ports/net/tcptrace/patches/patch-tcptrace_c

13 lines
499 B
Plaintext

$OpenBSD: patch-tcptrace_c,v 1.1 2002/10/17 18:21:29 naddy Exp $
--- tcptrace.c.orig Wed Jul 24 00:33:18 2002
+++ tcptrace.c Wed Oct 16 22:12:48 2002
@@ -594,7 +594,7 @@ Dump File Names\n\
char buf[256]; /* plenty large, but checked below with strncpy */
struct ext_var_op *pvop = &extended_vars[i];
strncpy(buf,pvop->var_optname,sizeof(buf)-10);
- strcat(buf,"=\"STR\"");
+ strncat(buf,"=\"STR\"", sizeof(buf));
fprintf(stderr," --%-20s %s (default: '%s')\n",
buf,
pvop->var_descr,