Use explicit variable size for copying char.

For some reason plain call to "ret.append(&b)" copy 32 bit of data.  This change unbreaks
CmdLine unit tests for FreeBSD 10, CentOS 7, RHEL 7 and Debian 8.
This commit is contained in:
Alexey Zelkin 2016-06-15 16:18:46 +00:00 committed by Felipe Zimmerle
parent 57ad70bb2b
commit 32f22d1a79
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -72,7 +72,7 @@ std::string CmdLine::evaluate(std::string value,
/* copy normal characters */
default :
char b = std::tolower(a);
ret.append(&b);
ret.append(&b, 1);
space = 0;
break;
}