[mapcode] 09/56: bugfix: -d option was case sensitive
Stefan Fritsch
sf at moszumanska.debian.org
Wed Nov 2 23:27:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to annotated tag v2.0.2
in repository mapcode.
commit ddaaf193c7ce2518d42cb64150968484d9daf236
Author: mapcodefoundation <pieter.geelen at mapcode.com>
Date: Tue Feb 10 12:54:20 2015 +0100
bugfix: -d option was case sensitive
---
example/mapcode.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/example/mapcode.cpp b/example/mapcode.cpp
index b3552cd..c207880 100644
--- a/example/mapcode.cpp
+++ b/example/mapcode.cpp
@@ -206,7 +206,7 @@ static void selfCheckLatLonToMapcode(const double lat, double lon, const char* t
for (int i = 0; !found && (i < nrResults); ++i) {
const char* foundMapcode = results[(i * 2)];
const char* foundTerritory = results[(i * 2) + 1];
- found = ((strcmp(territory, foundTerritory) == 0) && (strcmp(mapcode, foundMapcode) == 0));
+ found = ((strcasecmp(territory, foundTerritory) == 0) && (strcasecmp(mapcode, foundMapcode) == 0));
}
if (!found) {
fprintf(stderr, "error: encoding lat/lon to mapcode failure; "
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git
More information about the Pkg-grass-devel
mailing list