aboutsummaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 06:48:16 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 06:48:16 +0000
commit6980929e647b7a73e0634d9f699f18d462b8beca (patch)
tree26b722a9ed0981558ccf0a2c6cc45543ca91ffbf /src/or/rephist.c
parent44d4516155309e15b3463a543aef6239d485a04e (diff)
downloadtor-6980929e647b7a73e0634d9f699f18d462b8beca.tar
tor-6980929e647b7a73e0634d9f699f18d462b8beca.tar.gz
Use strlcpy, not strcpy.
svn:r2610
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 9a99442cd..506264928 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -267,7 +267,7 @@ void rep_hist_dump_stats(time_t now, int severity)
upt, upt+downt, uptime*100.0);
if (!strmap_isempty(or_history->link_history_map)) {
- strcpy(buffer, " Good extend attempts: ");
+ strlcpy(buffer, " Good extend attempts: ", sizeof(buffer));
len = strlen(buffer);
for (lhist_it = strmap_iter_init(or_history->link_history_map);
!strmap_iter_done(lhist_it);