From 9a46b042c57144c26a67781d335e6ba4128382d2 Mon Sep 17 00:00:00 2001 From: srs5694 Date: Tue, 15 Mar 2011 00:34:10 -0400 Subject: Patches supplied by Florian Zumbiehl --- basicmbr.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basicmbr.cc') diff --git a/basicmbr.cc b/basicmbr.cc index 764daaf..0af3a82 100644 --- a/basicmbr.cc +++ b/basicmbr.cc @@ -1604,7 +1604,7 @@ int BasicMBRData::DoMenu(const string& prompt) { do { cout << prompt; - ReadCString(line, 255); + ReadCString(line, sizeof(line)); switch (*line) { case '\n': break; @@ -1655,7 +1655,7 @@ int BasicMBRData::DoMenu(const string& prompt) { hexCode = 0; while ((hexCode <= 0) || (hexCode > 255)) { cout << "Enter an MBR hex code: "; - ReadCString(line, 255); + ReadCString(line, sizeof(line)); sscanf(line, "%x", &hexCode); if (line[0] == '\n') hexCode = 0x00; -- cgit v1.2.1