From 42ef984cf2514fedc4f9e2efe2876aa95d2d8579 Mon Sep 17 00:00:00 2001 From: Eoghan Sherry Date: Mon, 4 Apr 2011 15:46:58 -0400 Subject: mklatinkbd: fix buffer overflow Fixes #71. R=rsc CC=codebot http://codereview.appspot.com/4327057 --- src/cmd/devdraw/mklatinkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]; }; -- cgit v1.2.3