summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcachegen.cc
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-01 07:28:12 -0800
committerSam Bingner <sam@bingner.com>2019-08-17 12:47:30 -1000
commit6067e798a071fdb00ab1ade62b225ed6ff8d68da (patch)
treeacc3668538324ff69353145bfbf6c6c02ed74fd6 /apt-pkg/pkgcachegen.cc
parent55f36264ca95320f659fe33de86ea3acb2a6dc97 (diff)
Tags should use StoreString, not WriteStringInMap.
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r--apt-pkg/pkgcachegen.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc
index 796b3b574..6a409f991 100644
--- a/apt-pkg/pkgcachegen.cc
+++ b/apt-pkg/pkgcachegen.cc
@@ -1300,7 +1300,7 @@ bool pkgCacheGenerator::NewTag(pkgCache::VerIterator &Ver,
// Fill it in
pkgCache::TagIterator Tg(Cache,Cache.TagP + idxTag);
- map_pointer_t const idxName = WriteStringInMap(NameStart,NameSize);
+ map_pointer_t const idxName = StoreString(TAG,NameStart,NameSize);
if (idxName == 0)
return false;
Tg->Name = idxName;
@@ -1380,6 +1380,7 @@ map_stringitem_t pkgCacheGenerator::StoreString(enum StringType const type, cons
case PKGNAME: strings = &strPkgNames; break;
case VERSIONNUMBER: strings = &strVersions; break;
case SECTION: strings = &strSections; break;
+ case TAG: strings = &strTags; break;
default: _error->Fatal("Unknown enum type used for string storage of '%.*s'", Size, S); return 0;
}