summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-16 01:45:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-16 01:45:37 +0000
commit56ae7b62f480cfc096a9f7e27e45ea5258219100 (patch)
tree6c740eea535d1b2d903fda1e713b72ca847c93ca /gnu/usr.bin
parent078021ec13ea6203d9bdc46c5b9e98b5fa0f4863 (diff)
string cleaning
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/ld/ldconfig/ldconfig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/ld/ldconfig/ldconfig.c b/gnu/usr.bin/ld/ldconfig/ldconfig.c
index 98a21749f81..4608f36595c 100644
--- a/gnu/usr.bin/ld/ldconfig/ldconfig.c
+++ b/gnu/usr.bin/ld/ldconfig/ldconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldconfig.c,v 1.15 2002/12/08 16:27:17 millert Exp $ */
+/* $OpenBSD: ldconfig.c,v 1.16 2003/04/16 01:45:36 deraadt Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -193,7 +193,7 @@ dodir(char *dir, int silent)
continue;
/* Copy the entry minus prefix */
- (void)strcpy(name, dp->d_name + 3);
+ (void)strlcpy(name, dp->d_name + 3, sizeof name);
n = strlen(name);
if (n < 4)
continue;