diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-04-15 20:44:35 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-04-15 20:44:35 +0000 |
commit | 69e8015257ebe04ff5ee4ca314e5b706ab643811 (patch) | |
tree | 5df835cc755f28869a86edd743a6dcffe78f3efb /pango/pango-coverage.c | |
parent | 7c199eb857f8fa30e92904d18f862e19ee13ad17 (diff) | |
download | pango-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.c | 2 |
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, |