summaryrefslogtreecommitdiffstats
path: root/atc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-22 04:24:14 +0000
committerchristos <christos@NetBSD.org>2006-03-22 04:24:14 +0000
commit9a08ea3a64a2f17a6203ad610baab369e46c3c55 (patch)
treeb9c765961d67d6a2c75137acafcc756f30515340 /atc
parent436926c776eafbaf1048461eda1ef27219e39e1e (diff)
downloadbsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.tar.gz
bsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.tar.zst
bsdgames-darwin-9a08ea3a64a2f17a6203ad610baab369e46c3c55.zip
Coverity CID 692: Another && that should be ||. Boy...
Diffstat (limited to 'atc')
-rw-r--r--atc/update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/atc/update.c b/atc/update.c
index 963c57f3..7b7a3eda 100644
--- a/atc/update.c
+++ b/atc/update.c
@@ -1,4 +1,4 @@
-/* $NetBSD: update.c,v 1.14 2005/08/10 17:53:28 rpaulo Exp $ */
+/* $NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -46,7 +46,7 @@
#if 0
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: update.c,v 1.14 2005/08/10 17:53:28 rpaulo Exp $");
+__RCSID("$NetBSD: update.c,v 1.15 2006/03/22 04:24:14 christos Exp $");
#endif
#endif /* not lint */
@@ -260,7 +260,7 @@ name(const PLANE *p)
int
number(int 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');