diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-18 16:55:55 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-03-18 16:55:55 +0000 |
commit | dfbb771c83664afc246a3834d4ec17f3169b5989 (patch) | |
tree | a6062cdd0136c3b4f82635b600a22a9bb6099569 /lib/libcurses/tinfo/comp_hash.c | |
parent | 9504d3161dd42533b38ffc7e455b079baddb6032 (diff) |
Use strlcpy() / strlcat() throughout.
Diffstat (limited to 'lib/libcurses/tinfo/comp_hash.c')
-rw-r--r-- | lib/libcurses/tinfo/comp_hash.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcurses/tinfo/comp_hash.c b/lib/libcurses/tinfo/comp_hash.c index 6a21fbbf505..172c3fc946a 100644 --- a/lib/libcurses/tinfo/comp_hash.c +++ b/lib/libcurses/tinfo/comp_hash.c @@ -1,4 +1,4 @@ -/* $OpenBSD: comp_hash.c,v 1.5 2003/03/17 19:16:59 millert Exp $ */ +/* $OpenBSD: comp_hash.c,v 1.6 2003/03/18 16:55:54 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -309,7 +309,8 @@ int main(int argc, char **argv) root_name, (long) (hash_table[n] - name_table)); } else { - strcpy(buffer, "0"); + buffer[0] = '0'; + buffer[1] = '\0'; } printf("\t%s,\n", buffer); } |