Skip to content

Commit ea9f0ce

Browse files
committed
1 parent 414b179 commit ea9f0ce

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)