Merge branch 'obsd-master'

pull/2448/head
Thomas Adam 2020-10-29 18:01:21 +00:00
commit 7f321a4cc6
1 changed files with 6 additions and 1 deletions

View File

@ -1976,8 +1976,13 @@ input_csi_dispatch_sgr_colon(struct input_ctx *ictx, u_int i)
free(copy);
return;
}
} else
} else {
n++;
if (n == nitems(p)) {
free(copy);
return;
}
}
log_debug("%s: %u = %d", __func__, n - 1, p[n - 1]);
}
free(copy);