[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/2] Fix off-by-one error in string initialization (#577413)
- From: Martin Sivak <msivak redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH 1/2] Fix off-by-one error in string initialization (#577413)
- Date: Mon, 29 Mar 2010 12:50:29 +0200
---
loader/lang.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/loader/lang.c b/loader/lang.c
index c74a11b..564cc30 100644
--- a/loader/lang.c
+++ b/loader/lang.c
@@ -252,7 +252,7 @@ static int setupLanguage(int choice, int forced) {
isysLoadFont();
/* clear out top line */
- buf = alloca(80);
+ buf = alloca(81); /* reserve one byte for \0 */
for (i=0; i < 80; i++)
buf[i] = ' ';
newtDrawRootText(0, 0, buf);
--
1.6.6.1
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]