summaryrefslogtreecommitdiff
path: root/sbin/fsck
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-16 02:57:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-04-16 02:57:52 +0000
commit39e956168e0359c0ad49a5f360b31d82f71d052d (patch)
tree21403d32b0ed584c57d29ba8950e788dd58132a8 /sbin/fsck
parent7835e1b8b359e0fae3d111e2100a4dbda4c24029 (diff)
string cleaning
Diffstat (limited to 'sbin/fsck')
-rw-r--r--sbin/fsck/fsutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck/fsutil.c b/sbin/fsck/fsutil.c
index 03bc763c489..a6376b707c1 100644
--- a/sbin/fsck/fsutil.c
+++ b/sbin/fsck/fsutil.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsutil.c,v 1.8 2002/09/06 21:16:16 deraadt Exp $ */
+/* $OpenBSD: fsutil.c,v 1.9 2003/04/16 02:57:51 deraadt Exp $ */
/* $NetBSD: fsutil.c,v 1.2 1996/10/03 20:06:31 christos Exp $ */
/*
@@ -160,7 +160,7 @@ unrawname(char *name)
return (name);
if (dp[1] != 'r')
return (name);
- (void)strcpy(&dp[1], &dp[2]);
+ (void)memmove(&dp[1], &dp[2], strlen(&dp[2]) + 1);
return (name);
}