From e9d2a1681a1ba9fa9cee79e197e6d62c3deae7b7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 12 Apr 2004 08:29:15 +0000 Subject: Yikes! Stack trash I'd never noticed before. Oops. [originally from svn r4056] --- biblio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biblio.c b/biblio.c index de0b925..7ce163d 100644 --- a/biblio.c +++ b/biblio.c @@ -7,7 +7,7 @@ static wchar_t *gentext(int num) { wchar_t text[22]; - wchar_t *p = text + sizeof(text); + wchar_t *p = text + lenof(text); *--p = L'\0'; *--p = L']'; while (num != 0) { -- cgit v1.1