diff options
author | jkh <jkh@FreeBSD.org> | 1996-12-17 00:00:15 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-12-17 00:00:15 +0000 |
commit | e31e8400c205000f443a487e9c3ff8902aac54c4 (patch) | |
tree | 9171bf0e609c77bc332ee9b25f8bf527e9c46097 /usr.sbin/sysinstall/misc.c | |
parent | 89d0c85c516287e9c361728235da106e6972a164 (diff) | |
download | FreeBSD-src-e31e8400c205000f443a487e9c3ff8902aac54c4.zip FreeBSD-src-e31e8400c205000f443a487e9c3ff8902aac54c4.tar.gz |
1. Engage brain. 2. Write macro. Previous commit attempted to perform
2 before 1.
Diffstat (limited to 'usr.sbin/sysinstall/misc.c')
-rw-r--r-- | usr.sbin/sysinstall/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c index 6508fc7..ebca91f 100644 --- a/usr.sbin/sysinstall/misc.c +++ b/usr.sbin/sysinstall/misc.c @@ -1,7 +1,7 @@ /* * Miscellaneous support routines.. * - * $Id: misc.c,v 1.24 1996/12/11 18:23:18 jkh Exp $ + * $Id: misc.c,v 1.25 1996/12/12 22:38:41 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -80,7 +80,7 @@ string_concat(char *one, char *two) char * sstrncpy(char *dst, const char *src, int size) { - dst[--size] = '\0'; + dst[size] = '\0'; return strncpy(dst, src, size); } |