diff options
Diffstat (limited to 'src/devices/machine/ram.cpp')
-rw-r--r-- | src/devices/machine/ram.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/devices/machine/ram.cpp b/src/devices/machine/ram.cpp index da73376f7fe..6aca1ceeff8 100644 --- a/src/devices/machine/ram.cpp +++ b/src/devices/machine/ram.cpp @@ -75,6 +75,10 @@ ram_device::extra_option_vector calculate_extra_options(const char *extra_option bool done(false); for (std::string::size_type start = 0, end = options.find_first_of(','); !done; start = end + 1, end = options.find_first_of(',', start)) { + // ignore spaces + while ((end > start) && (options.length() > start) && ((' ' == options[start]) || ('\t' == options[start]))) + ++start; + // parse the option std::string ram_option_string(options.substr(start, (end == -1) ? -1 : end - start)); u32 const ram_option = parse_string(ram_option_string.c_str()); |