[mapcode] 03/32: Fixed decoder

Stefan Fritsch sf at moszumanska.debian.org
Wed Nov 2 23:27:14 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to annotated tag v1.33
in repository mapcode.

commit 87e849586ae1cd4ac4b597c9770fe45edec45554
Author: Rijn Buve <rijn at buve.nl>
Date:   Tue Aug 19 19:41:29 2014 +0200

    Fixed decoder
---
 mapcode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mapcode.c b/mapcode.c
index 4cd7525..e226759 100644
--- a/mapcode.c
+++ b/mapcode.c
@@ -59,7 +59,7 @@ int main(const int argc, const char** argv)
         double lat;
         double lon;
         int context = text2tc(defaultCountry, 0);
-        for (int i = 3; i <= argc; ++i) {
+        for (int i = 3; i < argc; ++i) {
             int err = mc2coord(&lat, &lon, argv[i], context);
             if (err != 0) {
                 printf("error: cannot decode '%s' (default country='%s')\n", argv[i], argv[1]);

-- 
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