From 3619df6ebb5805cc69d27ad35cca746600f1d996 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 19 Sep 2012 10:42:59 +0300 Subject: [PATCH] Aargh, stupid thinko in rpmstrPoolStrlen() last id special case - At the largest id, the end boundary is data, not offset size... doh --- rpmio/rpmstrpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmio/rpmstrpool.c b/rpmio/rpmstrpool.c index d29fbef..4c3db72 100644 --- a/rpmio/rpmstrpool.c +++ b/rpmio/rpmstrpool.c @@ -392,7 +392,7 @@ size_t rpmstrPoolStrlen(rpmstrPool pool, rpmsid sid) size_t slen = 0; if (pool && sid <= pool->offs_size) { size_t end = (sid < pool->offs_size) ? pool->offs[sid + 1] : - pool->offs_size; + pool->data_size; slen = end - pool->offs[sid] - 1; } return slen; -- 2.7.4