From b68b9b149a5a0c969de94f192420d953c14b1109 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 6 Apr 2006 19:11:41 +0000 Subject: (svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing) --- window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'window.h') diff --git a/window.h b/window.h index 11e4049bb..9296847e2 100644 --- a/window.h +++ b/window.h @@ -238,7 +238,7 @@ enum { typedef struct Textbuf { char *buf; /* buffer in which text is saved */ uint16 maxlength, maxwidth; /* the maximum size of the buffer. Maxwidth specifies screensize in pixels */ - uint16 length, width; /* the current size of the buffer. Width specifies screensize in pixels */ + uint16 length, width; /* the current size of the string. Width specifies screensize in pixels */ bool caret; /* is the caret ("_") visible or not */ uint16 caretpos; /* the current position of the caret in the buffer */ uint16 caretxoffs; /* the current position of the caret in pixels */ -- cgit v1.2.3-54-g00ecf