# HG changeset patch # User Matti Hamalainen # Date 1509355241 -7200 # Node ID 5df0021836bca2e6a0c238420492d36da77b02a5 # Parent 41469a2f3904cca28158584a7b708edbb50e3513 And another adjustment to block parsing. diff -r 41469a2f3904 -r 5df0021836bc mapsearch.c --- a/mapsearch.c Mon Oct 30 03:24:36 2017 +0200 +++ b/mapsearch.c Mon Oct 30 11:20:41 2017 +0200 @@ -495,10 +495,10 @@ if (offs < len && data[offs] != '\n') for (int xc = 0; xc < res->width; xc++) { - if (offs < len) + if (offs < len && data[offs] != '\n') dp[xc] = data[offs++]; else - goto out; + break; } while (offs < len && data[offs] != '\n') @@ -508,7 +508,6 @@ offs++; } -out: return offs == len; }