We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17569c7 commit 87e8495Copy full SHA for 87e8495
mapcode.c
@@ -59,7 +59,7 @@ int main(const int argc, const char** argv)
59
double lat;
60
double lon;
61
int context = text2tc(defaultCountry, 0);
62
- for (int i = 3; i <= argc; ++i) {
+ for (int i = 3; i < argc; ++i) {
63
int err = mc2coord(&lat, &lon, argv[i], context);
64
if (err != 0) {
65
printf("error: cannot decode '%s' (default country='%s')\n", argv[i], argv[1]);
0 commit comments