projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6df098e
)
Aargh, stupid thinko in rpmstrPoolStrlen() last id special case
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 19 Sep 2012 07:42:59 +0000
(10:42 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 19 Sep 2012 07:49:16 +0000
(10:49 +0300)
- At the largest id, the end boundary is data, not offset size... doh
rpmio/rpmstrpool.c
patch
|
blob
|
history
diff --git
a/rpmio/rpmstrpool.c
b/rpmio/rpmstrpool.c
index
d29fbef
..
4c3db72
100644
(file)
--- 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;