Module Name: src
Committed By: snj
Date: Fri Dec 18 06:01:38 UTC 2009
Modified Files:
src/usr.bin/btkey [netbsd-5]: btkey.c
Log Message:
Pull up following revision(s) (requested by plunky in ticket #1192):
usr.bin/btkey/btkey.c: revision 1.3
accept uppercase hex digits when parsing a provided key
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.4.1 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.2.4.1
--- src/usr.bin/btkey/btkey.c:1.2 Mon Jul 21 14:19:21 2008
+++ src/usr.bin/btkey/btkey.c Fri Dec 18 06:01:38 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: btkey.c,v 1.2 2008/07/21 14:19:21 lukem Exp $ */
+/* $NetBSD: btkey.c,v 1.2.4.1 2009/12/18 06:01:38 snj 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.2.4.1 2009/12/18 06:01:38 snj 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;