[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] lowercase exit policies.



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv25811/src/or

Modified Files:
	routers.c 
Log Message:
lowercase exit policies.

Index: routers.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routers.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- routers.c	7 Oct 2003 22:18:14 -0000	1.73
+++ routers.c	7 Oct 2003 23:02:37 -0000	1.74
@@ -952,11 +952,13 @@
   directory_token_t tok;
   char *tmp, *cp;
   int r;
-  int len;
+  int len, idx;
 
   len = strlen(s);
   tmp = cp = tor_malloc(len+2);
-  strcpy(tmp, s);
+  for (idx = 0; idx < len; ++idx) {
+    tmp[idx] = tolower(s[idx]);
+  }
   tmp[len]='\n';
   tmp[len+1]='\0';
   if (router_get_next_token(&cp, &tok)) {