2114697ef0
from William Yodlowsky (MAINTAINER)
17 lines
711 B
Plaintext
17 lines
711 B
Plaintext
$OpenBSD: patch-patch-connect_c,v 1.1 2007/09/04 20:52:13 jasper Exp $
|
|
--- patch-connect_c.orig Wed Jul 18 09:47:33 2007
|
|
+++ patch-connect_c Wed Jul 18 09:47:34 2007
|
|
@@ -0,0 +1,12 @@
|
|
+$OpenBSD: patch-patch-connect_c,v 1.1 2007/09/04 20:52:13 jasper Exp $
|
|
+--- connect.c.orig Fri Jul 13 20:58:35 2007
|
|
++++ connect.c Fri Jul 13 20:57:13 2007
|
|
+@@ -177,7 +177,7 @@ get_capabilities( SNET *sn )
|
|
+ return( NULL );
|
|
+ }
|
|
+ if ( verbose ) printf( "<<< %s\n", line );
|
|
+- strcpy( temp, line+4 );
|
|
++ (void)strlcpy( temp, line+4, sizeof( temp ) );
|
|
+ if (( ac = argcargv( temp, &av )) != 0 ) {
|
|
+ if ( strncasecmp( "CAPAbilities", av[0], MIN( 12, strlen( av[0] ))) == 0 ) {
|
|
+ capa = malloc( sizeof(char *)*ac );
|