We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1757e57 commit 38f46c7Copy full SHA for 38f46c7
cpp/openlocationcode.cc
@@ -208,6 +208,9 @@ CodeArea Decode(const std::string &code) {
208
clean_code = clean_code.substr(0,
209
clean_code.find(internal::kPaddingCharacter));
210
}
211
+ if (clean_code.size() > internal::kMaximumDigitCount) {
212
+ clean_code = clean_code.substr(0, internal::kMaximumDigitCount);
213
+ }
214
double resolution_degrees = internal::kEncodingBase;
215
double latitude = 0.0;
216
double longitude = 0.0;
0 commit comments