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/rephist.c | |
parent | 44d4516155309e15b3463a543aef6239d485a04e (diff) | |
download | tor-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.c | 2 |
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); |