diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2006-03-27 00:10:16 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2006-03-27 00:10:16 +0000 |
commit | 1e83c82a3bf562241906e89f69222dfa40422206 (patch) | |
tree | 3cb64e8eb5d6a8755f5b2b2f0f18285a9094a131 /games/atc/update.c | |
parent | 8865bd2a63b0dd63bb6398ca8fef60e3f5669d34 (diff) |
assorted fixes mostly from coverity via netbsd via jasper adriaanse via tech
Diffstat (limited to 'games/atc/update.c')
-rw-r--r-- | games/atc/update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/atc/update.c b/games/atc/update.c index ad1e4472704..40f6cbb3a41 100644 --- a/games/atc/update.c +++ b/games/atc/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.9 2004/11/29 08:52:28 jsg Exp $ */ +/* $OpenBSD: update.c,v 1.10 2006/03/27 00:10:14 tedu Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -45,7 +45,7 @@ #if 0 static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: update.c,v 1.9 2004/11/29 08:52:28 jsg Exp $"; +static char rcsid[] = "$OpenBSD: update.c,v 1.10 2006/03/27 00:10:14 tedu Exp $"; #endif #endif /* not lint */ @@ -263,7 +263,7 @@ name(const PLANE *p) int number(char l) { - if (l < 'a' && l > 'z' && l < 'A' && l > 'Z') + if ((l < 'a' && l > 'z') || (l < 'A' && l > 'Z')) return (-1); else if (l >= 'a' && l <= 'z') return (l - 'a'); |