From fa0a1ec49ff9cd93730e81f5eb4112624b5c0443 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 23 Sep 2004 22:18:50 +0000 Subject: cleanup: use strcmpstart() in more places svn:r2372 --- src/or/circuituse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/circuituse.c') diff --git a/src/or/circuituse.c b/src/or/circuituse.c index 9173bc09a..549993a7c 100644 --- a/src/or/circuituse.c +++ b/src/or/circuituse.c @@ -79,7 +79,7 @@ static int circuit_is_acceptable(circuit_t *circ, /* 0.0.7 servers and earlier don't support DNS resolution. There are no * ORs running code before 0.0.7, so we only worry about 0.0.7. Once all * servers are running 0.0.8, remove this check. */ - if (!strncmp(exitrouter->platform, "Tor 0.0.7", 9)) + if (!strcmpstart(exitrouter->platform, "Tor 0.0.7")) return 0; } else if(purpose == CIRCUIT_PURPOSE_C_GENERAL) { if(!connection_ap_can_use_exit(conn, exitrouter)) { -- cgit v1.2.3