aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2014-05-01 14:44:29 +0100
committerNick Mathewson <nickm@torproject.org>2014-05-01 12:34:50 -0400
commita787575b7f2d9bbb8385940977cafcfc87c71234 (patch)
tree9f0930b96d607b57da1c1268a9ee1ed406a634c0 /src/or/nodelist.c
parent545e2119f2e96dedef2efd254632f0204f70ab76 (diff)
downloadtor-a787575b7f2d9bbb8385940977cafcfc87c71234.tar.gz
tor-a787575b7f2d9bbb8385940977cafcfc87c71234.zip
Fix a misuse of strlcpy() introduced by the #11156 patch.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index a38a6d4993..09232f9f99 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1510,8 +1510,8 @@ update_router_have_minimum_dir_info(void)
}
if (should_delay_dir_fetches(get_options(), &delay_fetches_msg)) {
- log_notice(LD_DIR, "Delaying dir fetches: %s", delay_fetches_msg);
- strlcpy(dir_info_status, "%s", sizeof(dir_info_status));
+ log_notice(LD_DIR, "Delaying directory fetches: %s", delay_fetches_msg);
+ strlcpy(dir_info_status, delay_fetches_msg, sizeof(dir_info_status));
res = 0;
goto done;
}