[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Double buffer for fdasd_check_api_version (#693852)
From: |
Brian C. Lane |
Subject: |
[PATCH] Double buffer for fdasd_check_api_version (#693852) |
Date: |
Mon, 11 Apr 2011 13:55:46 -0700 |
The static buffer for the error string is too small. Double it.
Resolves: rhbz#693852
---
libparted/labels/fdasd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c
index 6d708f6..e235dd3 100644
--- a/libparted/labels/fdasd.c
+++ b/libparted/labels/fdasd.c
@@ -754,7 +754,7 @@ fdasd_check_api_version (fdasd_anchor_t *anc, int f)
{
PDEBUG
int api;
- char s[LINE_LENGTH];
+ char s[2*LINE_LENGTH];
struct stat st;
if (fstat (f, &st) == 0 && S_ISREG (st.st_mode)) {
--
1.7.4
- [PATCH] Double buffer for fdasd_check_api_version (#693852),
Brian C. Lane <=