Skip to content

Commit ddaaf19

Browse files
bugfix: -d option was case sensitive
1 parent 496c52d commit ddaaf19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/mapcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void selfCheckLatLonToMapcode(const double lat, double lon, const char* t
206206
for (int i = 0; !found && (i < nrResults); ++i) {
207207
const char* foundMapcode = results[(i * 2)];
208208
const char* foundTerritory = results[(i * 2) + 1];
209-
found = ((strcmp(territory, foundTerritory) == 0) && (strcmp(mapcode, foundMapcode) == 0));
209+
found = ((strcasecmp(territory, foundTerritory) == 0) && (strcasecmp(mapcode, foundMapcode) == 0));
210210
}
211211
if (!found) {
212212
fprintf(stderr, "error: encoding lat/lon to mapcode failure; "

0 commit comments

Comments
 (0)