summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-05-12 17:33:06 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-05-12 17:33:06 +0000
commitcdc3a7e5542ba4bd9d0376513e854aeb75ef3703 (patch)
tree43ed8881bd9a586bfe25acb37e4be4201fb122de /usr.bin/rcs
parente489b8ca637994b2a590b47776a774006357ae99 (diff)
Change 0x30 to more readable '0'.
OK xsa@.
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/rcsnum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsnum.c b/usr.bin/rcs/rcsnum.c
index 894335e6594..34d2327a2b7 100644
--- a/usr.bin/rcs/rcsnum.c
+++ b/usr.bin/rcs/rcsnum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsnum.c,v 1.5 2007/03/02 04:53:17 ray Exp $ */
+/* $OpenBSD: rcsnum.c,v 1.6 2007/05/12 17:33:05 ray Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -241,7 +241,7 @@ rcsnum_aton(const char *str, char **ep, RCSNUM *nump)
continue;
}
- val = (nump->rn_id[nump->rn_len] * 10) + (*sp - 0x30);
+ val = (nump->rn_id[nump->rn_len] * 10) + (*sp - '0');
if (val > RCSNUM_MAXNUM)
errx(1, "RCSNUM overflow!");