Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/btkey accept uppercase hex digits when parsing a pro...
details: https://anonhg.NetBSD.org/src/rev/7d83818e8b88
branches: trunk
changeset: 749842:7d83818e8b88
user: plunky <plunky%NetBSD.org@localhost>
date: Thu Dec 10 18:57:31 2009 +0000
description:
accept uppercase hex digits when parsing a provided key
diffstat:
usr.bin/btkey/btkey.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 8543b42781fd -r 7d83818e8b88 usr.bin/btkey/btkey.c
--- a/usr.bin/btkey/btkey.c Thu Dec 10 17:18:33 2009 +0000
+++ b/usr.bin/btkey/btkey.c Thu Dec 10 18:57:31 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: btkey.c,v 1.2 2008/07/21 14:19:21 lukem Exp $ */
+/* $NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $ */
/*-
* Copyright (c) 2007 Iain Hibbert
@@ -29,9 +29,10 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2007 Iain Hibbert. All rights reserved.");
-__RCSID("$NetBSD: btkey.c,v 1.2 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $");
#include <bluetooth.h>
+#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <stdbool.h>
@@ -253,7 +254,7 @@
if (*arg == '\0')
return true;
- for (p = digits ; *p != *arg ; p++)
+ for (p = digits ; *p != tolower((int)*arg) ; p++)
if (*p == '\0')
return false;
Home |
Main Index |
Thread Index |
Old Index