# HG changeset patch # User Matti Hamalainen # Date 1688336395 -10800 # Node ID 9ed6bde2401ce61a0646be5b5641a130c75c9059 # Parent 0e60d6fdfe9f997f4b445173d73a92841c803508 Fixes. diff -r 0e60d6fdfe9f -r 9ed6bde2401c src/mapsearch.c --- a/src/mapsearch.c Sun Jul 02 03:44:34 2023 +0300 +++ b/src/mapsearch.c Mon Jul 03 01:19:55 2023 +0300 @@ -255,7 +255,7 @@ goto out; } - info = &optMaps[optNMaps]; + info = &optMaps[optNMaps++]; memset(info, 0, sizeof(MAPInfoCtx)); // Check for map filename end @@ -1833,7 +1833,7 @@ { res = th_get_error(); mapERR("Could not open log file '%s' for writing: %s\n", - th_error_str(res)); + optLogFilename, th_error_str(res)); goto out; }