summaryrefslogtreecommitdiffstats
path: root/sys/libkern
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-24 20:51:26 +0000
committerphk <phk@FreeBSD.org>1996-01-24 20:51:26 +0000
commitb9b02a56e8d92d6cdd5503e3016017907fdd54f7 (patch)
treec7b880650d89ece9cb77a2cd2cc12949364176dc /sys/libkern
parent18835fb2f0ffc5a455256cefe36feb2911a3c9c5 (diff)
downloadFreeBSD-src-b9b02a56e8d92d6cdd5503e3016017907fdd54f7.zip
FreeBSD-src-b9b02a56e8d92d6cdd5503e3016017907fdd54f7.tar.gz
Extend to handle all radix < 37
Diffstat (limited to 'sys/libkern')
-rw-r--r--sys/libkern/bcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/libkern/bcd.c b/sys/libkern/bcd.c
index 5e3e56f..540ed5f 100644
--- a/sys/libkern/bcd.c
+++ b/sys/libkern/bcd.c
@@ -31,4 +31,5 @@ u_char const bin2bcd_data[] = {
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99
};
-char const hex2ascii_data[] = "0123456789abcdef";
+/* This is actually used with radix [2..36] */
+char const hex2ascii_data[] = "0123456789abcdefghijklmnopqrstuvwxyz";
OpenPOWER on IntegriCloud