diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-22 04:03:45 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-07-22 04:03:45 +0000 |
commit | 4e5f8b13a08f788e1dbba088ab9b02e4b5f172f2 (patch) | |
tree | 29118a61678378341ca7852adf150f42f83f3fd8 /usr.bin/info_mkdb/getinfo.c | |
parent | 44c381bdbc334b58daf4a98f2cf0b17a7ee3a161 (diff) |
Properly overwrite the entire use= string after resolving it
Diffstat (limited to 'usr.bin/info_mkdb/getinfo.c')
-rw-r--r-- | usr.bin/info_mkdb/getinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/info_mkdb/getinfo.c b/usr.bin/info_mkdb/getinfo.c index 8e29baa792b..e9c3420e338 100644 --- a/usr.bin/info_mkdb/getinfo.c +++ b/usr.bin/info_mkdb/getinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getinfo.c,v 1.1 1996/07/22 03:16:30 tholo Exp $ */ +/* $OpenBSD: getinfo.c,v 1.2 1996/07/22 04:03:44 tholo Exp $ */ /*- * Copyright (c) 1996 SigmaSoft, Th. Lockert <tholo@sigmasoft.com> @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getinfo.c,v 1.1 1996/07/22 03:16:30 tholo Exp $"; +static char rcsid[] = "$OpenBSD: getinfo.c,v 1.2 1996/07/22 04:03:44 tholo Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -353,7 +353,7 @@ getent(cap, len, db_array, fd, name, depth) *(s - 1) = '\0'; break; } - tcstart = tc - 3; + tcstart = tc - 4; tclen = s - tcstart; tcend = s; |