From eb67d53cdc3118acf9e4268b73653e87f7411fe5 Mon Sep 17 00:00:00 2001 From: james <> Date: Tue, 11 Mar 2008 15:02:52 +0000 Subject: *** empty log message *** --- apps/sympathy.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps') 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 { -- cgit v1.2.3