Commit 5e42cd40 authored by fogal1's avatar fogal1
Browse files

rts: fix parsing of string variables.

Return the entire string, instead of stopping after the first
input.  Basically, allow spaces in the returned string.

git-svn-id: 18c085ea-50e0-402c-830e-de6fd14e8384
parent 322b953a
......@@ -295,17 +295,16 @@ lookupf(const char *key)
return retval;
// Modifications:
// Tom Fogal, Wed May 26 11:00:44 MDT 2010
// Fix parsing -- we should get the whole string!
lookups(const char *key)
std::string retval;
std::string value;
if(find_setting(key, value))
std::istringstream read_value(value);
read_value >> retval;
return retval;
find_setting(key, value);
return value;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment