Module Name: src
Committed By: plunky
Date: Thu Dec 10 18:57:32 UTC 2009
Modified Files:
src/usr.bin/btkey: btkey.c
Log Message:
accept uppercase hex digits when parsing a provided key
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/btkey/btkey.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/btkey/btkey.c
diff -u src/usr.bin/btkey/btkey.c:1.2 src/usr.bin/btkey/btkey.c:1.3
--- src/usr.bin/btkey/btkey.c:1.2 Mon Jul 21 14:19:21 2008
+++ src/usr.bin/btkey/btkey.c Thu Dec 10 18:57:31 2009
@@ -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;