aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-09-23 22:18:50 +0000
committerRoger Dingledine <arma@torproject.org>2004-09-23 22:18:50 +0000
commitfa0a1ec49ff9cd93730e81f5eb4112624b5c0443 (patch)
tree3beb7863d2e6cf91a3c8b4a632624c423c5edfe2 /src/or/routerparse.c
parent09f450104ae87cadf71e4eca982fc35446c6af30 (diff)
downloadtor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar
tor-fa0a1ec49ff9cd93730e81f5eb4112624b5c0443.tar.gz
cleanup: use strcmpstart() in more places
svn:r2372
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index c970851b9..fdc34f205 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -591,7 +591,7 @@ router_parse_list_from_string(const char **s, routerlist_t **dest,
while (1) {
*s = eat_whitespace(*s);
/* Don't start parsing the rest of *s unless it contains a router. */
- if (strncmp(*s, "router ", 7)!=0)
+ if (strcmpstart(*s, "router ")!=0)
break;
if ((end = strstr(*s+1, "\nrouter "))) {
end++;