aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames <>2008-03-11 15:02:52 +0000
committerjames <>2008-03-11 15:02:52 +0000
commiteb67d53cdc3118acf9e4268b73653e87f7411fe5 (patch)
tree26e87c6030d8f6997fe941a37a6177d910a6be32
parent0a4c67a874e7bce9e358c82489782c9e402a58a4 (diff)
downloadsympathy-eb67d53cdc3118acf9e4268b73653e87f7411fe5.tar.gz
sympathy-eb67d53cdc3118acf9e4268b73653e87f7411fe5.tar.bz2
sympathy-eb67d53cdc3118acf9e4268b73653e87f7411fe5.zip
*** empty log message ***
-rw-r--r--apps/sympathy.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/sympathy.c b/apps/sympathy.c
index 94cd801..c14b8ec 100644
--- a/apps/sympathy.c
+++ b/apps/sympathy.c
@@ -11,6 +11,9 @@ static char rcsid[] =
/*
* $Log$
+ * Revision 1.42 2008/03/11 15:02:52 james
+ * *** empty log message ***
+ *
* Revision 1.41 2008/03/10 11:49:32 james
* *** empty log message ***
*
@@ -482,6 +485,7 @@ main (int argc, char *argv[])
memset (oflags, 0, sizeof (oflags));
memset (oargs, 0, sizeof (oargs));
+
while ((c = getopt (argc, argv, "I:NRP:vw:utscr:lKHd:pb:fL:Fk:n:")) != EOF) {
switch (c) {
case ':':
@@ -489,10 +493,10 @@ main (int argc, char *argv[])
case '?':
usage ();
default:
- if ((c > 64) && (c < 91)) {
+ if ((c >= 'A') && (c <= 'Z')) {
oflags[c]++;
oargs[c] = optarg;
- } else if ((c > 96) && (c < 123)) {
+ } else if ((c >= 'a') && (c <= 'z')) {
oflags[c]++;
oargs[c] = optarg;
} else {