Skip to content

Commit cadb6dd

Browse files
authored
Merge pull request #636 from pavel-pimenov/fix-strstr
strstr -> strchr
2 parents 414b179 + ea9f0ce commit cadb6dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
153153
fixNumericLocale(buffer, buffer + len);
154154

155155
// try to ensure we preserve the fact that this was given to us as a double on input
156-
if (!strstr(buffer, ".") && !strstr(buffer, "e")) {
156+
if (!strchr(buffer, '.') && !strchr(buffer, 'e')) {
157157
strcat(buffer, ".0");
158158
}
159159

0 commit comments

Comments
 (0)