diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:48:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:48:16 +0000 |
commit | 6980929e647b7a73e0634d9f699f18d462b8beca (patch) | |
tree | 26b722a9ed0981558ccf0a2c6cc45543ca91ffbf /src/or/dirserv.c | |
parent | 44d4516155309e15b3463a543aef6239d485a04e (diff) | |
download | tor-6980929e647b7a73e0634d9f699f18d462b8beca.tar.gz tor-6980929e647b7a73e0634d9f699f18d462b8beca.zip |
Use strlcpy, not strcpy.
svn:r2610
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 06d1a5a81d..725bc1d977 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -476,7 +476,7 @@ list_single_server_status(descriptor_entry_t *desc, int is_live, *cp++ = '!'; } if (desc->verified) { - strcpy(cp, desc->nickname); + strlcpy(cp, desc->nickname, sizeof(buf)-(cp-buf)); cp += strlen(cp); if (!rr_format) *cp++ = '='; |