Преглед изворни кода

Merge branch 'cov217_022_squashed' into maint-0.2.2

Nick Mathewson пре 14 година
родитељ
комит
06f0c1aa6a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/or/dirserv.c

+ 1 - 1
src/or/dirserv.c

@@ -2415,7 +2415,7 @@ measured_bw_line_parse(measured_bw_line_t *out, const char *orig_line)
         tor_free(line);
         return -1;
       }
-      strncpy(out->node_hex, cp, sizeof(out->node_hex));
+      strlcpy(out->node_hex, cp, sizeof(out->node_hex));
       got_node_id=1;
     }
   } while ((cp = tor_strtok_r(NULL, " \t", &strtok_state)));