mklatinkbd: fix buffer overflow

Fixes #71.

R=rsc
CC=codebot
http://codereview.appspot.com/4327057
This commit is contained in:
Eoghan Sherry 2011-04-04 15:46:58 -04:00 committed by Russ Cox
parent 8df5d4f621
commit 42ef984cf2

View file

@ -31,7 +31,7 @@ char *head = ""
typedef struct Trie Trie;
struct Trie {
int n; /* of characters r */
char seq[MAXLD+1];
char seq[MAXLD+1+1];
Rune r[256];
Trie *link[256];
};