2114697ef0
from William Yodlowsky (MAINTAINER)
22 lines
747 B
Plaintext
22 lines
747 B
Plaintext
$OpenBSD: patch-patch-lsize_c,v 1.1 2007/09/04 20:52:13 jasper Exp $
|
|
--- patch-lsize_c.orig Wed Jul 18 09:47:42 2007
|
|
+++ patch-lsize_c Wed Jul 18 09:47:42 2007
|
|
@@ -0,0 +1,17 @@
|
|
+$OpenBSD: patch-patch-lsize_c,v 1.1 2007/09/04 20:52:13 jasper Exp $
|
|
+--- lsize.c.orig Fri Jul 13 20:58:48 2007
|
|
++++ lsize.c Fri Jul 13 20:59:22 2007
|
|
+@@ -223,11 +223,11 @@ main( int ac, char *av[] )
|
|
+ fprintf( stderr, "%s: path too long\n", path );
|
|
+ exit( 2 );
|
|
+ }
|
|
+- strcpy( kdir, path );
|
|
++ (void)strlcpy( kdir, path, sizeof( kdir ) );
|
|
+
|
|
+ if (( p = strrchr( kdir, '/' )) == NULL ) {
|
|
+ /* use working directory */
|
|
+- strcpy( kdir, "./" );
|
|
++ (void)strlcpy( kdir, "./", sizeof( kdir ) );
|
|
+ } else {
|
|
+ p++;
|
|
+ *p = (char)'\0';
|