From e92be2adb8aa35a7abce7286153d7d06413ffa2f Mon Sep 17 00:00:00 2001
From: Ruud Overeem <overeem@astron.nl>
Date: Tue, 5 Jun 2007 11:31:29 +0000
Subject: [PATCH] BugID: 826 Enlarged the input buffer from 1024 to 4096
 characters.

---
 LCS/ACC/APS/src/ParameterSetImpl.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/LCS/ACC/APS/src/ParameterSetImpl.cc b/LCS/ACC/APS/src/ParameterSetImpl.cc
index f059447b385..a7f2b5f05cf 100644
--- a/LCS/ACC/APS/src/ParameterSetImpl.cc
+++ b/LCS/ACC/APS/src/ParameterSetImpl.cc
@@ -239,7 +239,7 @@ void ParameterSetImpl::addStream(istream&	inputStream,
 				 const string&	prefix,
 				 bool		merge)
 {
-	char	paramLine[1024];
+	char	paramLine[4096];
 	char*	keyStr;
 	char*	valueStr;
 	bool	multiLine = false;			// current line is multiline
@@ -249,7 +249,7 @@ void ParameterSetImpl::addStream(istream&	inputStream,
 	string	prefixedKey;					// Key with added prefix (which may be an empty string)
 
 	// Read the file line by line and convert it to Key Value pairs.
-	while (inputStream.getline (paramLine, 1024)) {
+	while (inputStream.getline (paramLine, 4096)) {
 		LOG_TRACE_LOOP(formatString("data:>%s<", paramLine));
 	
 		if (!paramLine[0] || paramLine[0] == '#') {		// skip empty lines
-- 
GitLab