summaryrefslogtreecommitdiff
path: root/pango/pango-coverage.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2003-04-15 20:44:35 +0000
committerOwen Taylor <otaylor@src.gnome.org>2003-04-15 20:44:35 +0000
commit69e8015257ebe04ff5ee4ca314e5b706ab643811 (patch)
tree5df835cc755f28869a86edd743a6dcffe78f3efb /pango/pango-coverage.c
parent7c199eb857f8fa30e92904d18f862e19ee13ad17 (diff)
downloadpango-69e8015257ebe04ff5ee4ca314e5b706ab643811.tar.gz
Fix off-by-one error. (#108620, Noah Levitt)
Tue Apr 15 04:39:48 2003 Owen Taylor <otaylor@redhat.com> * pango/pango-coverage.c (pango_coverage_set): Fix off-by-one error. (#108620, Noah Levitt)
Diffstat (limited to 'pango/pango-coverage.c')
-rw-r--r--pango/pango-coverage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-coverage.c b/pango/pango-coverage.c
index 65c87e06..62638280 100644
--- a/pango/pango-coverage.c
+++ b/pango/pango-coverage.c
@@ -217,7 +217,7 @@ pango_coverage_set (PangoCoverage *coverage,
int old_n_blocks = coverage->n_blocks;
coverage->n_blocks =
- N_BLOCKS_INCREMENT * ((block_index + N_BLOCKS_INCREMENT - 1) / N_BLOCKS_INCREMENT);
+ N_BLOCKS_INCREMENT * ((block_index + N_BLOCKS_INCREMENT) / N_BLOCKS_INCREMENT);
coverage->blocks = g_renew (PangoBlockInfo, coverage->blocks, coverage->n_blocks);
memset (coverage->blocks + old_n_blocks, 0,