Merge pull request #636 from pavel-pimenov/fix-strstr

strstr -> strchr
This commit is contained in:
Billy Donahue
2017-07-13 11:23:04 -04:00
committed by GitHub

View File

@@ -153,7 +153,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
fixNumericLocale(buffer, buffer + len);
// try to ensure we preserve the fact that this was given to us as a double on input
if (!strstr(buffer, ".") && !strstr(buffer, "e")) {
if (!strchr(buffer, '.') && !strchr(buffer, 'e')) {
strcat(buffer, ".0");
}