diff options
author | Eoghan Sherry <ejsherry@gmail.com> | 2011-04-04 15:46:58 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-04-04 15:46:58 -0400 |
commit | 42ef984cf2514fedc4f9e2efe2876aa95d2d8579 (patch) | |
tree | 1c196063625955488083c0418da48831410a8256 | |
parent | 8df5d4f621f3735d36290f9f1f191ff9f25ce612 (diff) | |
download | plan9port-42ef984cf2514fedc4f9e2efe2876aa95d2d8579.tar.gz plan9port-42ef984cf2514fedc4f9e2efe2876aa95d2d8579.tar.bz2 plan9port-42ef984cf2514fedc4f9e2efe2876aa95d2d8579.zip |
mklatinkbd: fix buffer overflow
Fixes #71.
R=rsc
CC=codebot
http://codereview.appspot.com/4327057
-rw-r--r-- | src/cmd/devdraw/mklatinkbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/devdraw/mklatinkbd.c b/src/cmd/devdraw/mklatinkbd.c index b8e5fd19..abd202fb 100644 --- a/src/cmd/devdraw/mklatinkbd.c +++ b/src/cmd/devdraw/mklatinkbd.c @@ -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]; }; |