blob: 05b6245d13946eb452217add5ef079cfa68b65ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ad,v 1.2 2011/12/19 00:52:10 dholland Exp $
- use toupper() correctly
- suppress initialization warning that sometimes (?) arises with gcc 4.5
--- extend.c.orig 2007-01-12 17:24:48.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 '^':
@@ -707,7 +707,7 @@ excline(char *line)
long nl;
#ifdef FKEYS
int bind;
- KEYMAP *curmap;
+ KEYMAP *curmap = NULL;;
#define BINDARG 0 /* this arg is key to bind (local/global set key) */
#define BINDNO 1 /* not binding or non-quoted BINDARG */
#define BINDNEXT 2 /* next arg " (define-key) */
|