aec4c941c3
this is version 2.1.6, from and maintained by William Yodlowsky <bsd at openbsd.rutgers.edu>
22 lines
563 B
Plaintext
22 lines
563 B
Plaintext
$OpenBSD: patch-src_repository_c,v 1.1 2004/06/17 11:21:43 sturm Exp $
|
|
--- src/repository.c.orig 2004-06-10 10:50:03.000000000 -0400
|
|
+++ src/repository.c 2004-06-10 11:29:44.000000000 -0400
|
|
@@ -85,7 +85,7 @@ if ((strlen(localrepository) == 0) || HO
|
|
|
|
Debug2("Repository(%s)\n",file);
|
|
|
|
-strcpy (node,file);
|
|
+(void)strlcpy (node,file,sizeof(node));
|
|
|
|
buffer[0] = '\0';
|
|
|
|
@@ -106,7 +106,7 @@ if (BufferOverflow(buffer,node))
|
|
return false;
|
|
}
|
|
|
|
-strcat(buffer,node);
|
|
+(void)strlcat(buffer,node,sizeof(buffer));
|
|
|
|
if (!MakeDirectoriesFor(buffer,'y'))
|
|
{
|