aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 9ae4ebd14..54e81dc90 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -271,9 +271,9 @@ static void router_add_exit_policy_from_config(routerinfo_t *router) {
e = strchr(s,',');
if(!e) {
last = 1;
- strncpy(line,s,1023);
+ strncpy(line,s,1023);
} else {
- memcpy(line,s, ((e-s)<1023)?(e-s):1023);
+ memcpy(line,s, ((e-s)<1023)?(e-s):1023);
line[e-s] = 0;
}
line[1023]=0;