[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] make abbreviations case-insensitive (thanks weasel)
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
config.c
Log Message:
make abbreviations case-insensitive (thanks weasel)
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/src/or/config.c,v
retrieving revision 1.240
retrieving revision 1.241
diff -u -d -r1.240 -r1.241
--- config.c 10 Nov 2004 03:08:03 -0000 1.240
+++ config.c 10 Nov 2004 03:22:49 -0000 1.241
@@ -321,7 +321,7 @@
int i;
for (i=0; config_abbrevs[i].abbreviated; ++i) {
/* Abbreviations aren't casei. */
- if (!strcmp(option,config_abbrevs[i].abbreviated) &&
+ if (!strcasecmp(option,config_abbrevs[i].abbreviated) &&
(command_line || !config_abbrevs[i].commandline_only)) {
return config_abbrevs[i].full;
}