aboutsummaryrefslogtreecommitdiff
path: root/release/sysinstall/misc.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1996-12-12 22:38:41 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1996-12-12 22:38:41 +0000
commit3cd31ab7391ff026b20d11cd4ccb3b406ccea85a (patch)
treedb14f6e03f22f56c16f7e3d87573f0a510a090b2 /release/sysinstall/misc.c
parent4d224b7f55f13c1ce9479a803e50ce14e118f46e (diff)
Notes
Diffstat (limited to 'release/sysinstall/misc.c')
-rw-r--r--release/sysinstall/misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/sysinstall/misc.c b/release/sysinstall/misc.c
index af88fe3b2d1f..6508fc7634fc 100644
--- a/release/sysinstall/misc.c
+++ b/release/sysinstall/misc.c
@@ -1,7 +1,7 @@
/*
* Miscellaneous support routines..
*
- * $Id: misc.c,v 1.23 1996/12/09 08:22:15 jkh Exp $
+ * $Id: misc.c,v 1.24 1996/12/11 18:23:18 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -80,8 +80,8 @@ string_concat(char *one, char *two)
char *
sstrncpy(char *dst, const char *src, int size)
{
- dst[size - 1] = '\0';
- return strncpy(dst, src, size - 1);
+ dst[--size] = '\0';
+ return strncpy(dst, src, size);
}
/* Concatenate three strings into static storage */