$NetBSD: patch-ad,v 1.3 2012/12/12 12:47:50 wiz Exp $

- use toupper() correctly
- suppress initialization warning that sometimes (?) arises with gcc 4.5

--- extend.c.orig	2011-06-18 09:18:54.000000000 +0000
+++ extend.c
@@ -445,7 +445,7 @@ dobindkey(KEYMAP *map, const char *func,
 	for (i = 0; *str && i < MAXKEY; i++) {
 		/* XXX - convert numbers w/ strol()? */
 		if (*str == '^' && *(str + 1) !=  '\0') {
-			key.k_chars[i] = CCHR(toupper(*++str));
+			key.k_chars[i] = CCHR(toupper((unsigned char)*++str));
 		} else if (*str == '\\' && *(str + 1) != '\0') {
 			switch (*++str) {
 			case '^':
