diff options
author | Guillem Jover <guillem@debian.org> | 2014-09-20 02:14:09 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-06 02:08:02 +0200 |
commit | e9a73826b1a310ac34d2cfc1ab278e0f930f5dc6 (patch) | |
tree | 8e22952eba50964e72bb6a09ed9efd109aa6c420 | |
parent | a1920c132369534dd18157dafa4758c44d555ddd (diff) | |
download | dpkg-e9a73826b1a310ac34d2cfc1ab278e0f930f5dc6.tar.gz |
dpkg: Use varbuf_end_str() instead of varbuf_add_char() with explicit '\0'
-rw-r--r-- | src/infodb-access.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/infodb-access.c b/src/infodb-access.c index f8289ea4d..2d58576a7 100644 --- a/src/infodb-access.c +++ b/src/infodb-access.c @@ -75,8 +75,8 @@ pkg_infodb_foreach(struct pkginfo *pkg, struct pkgbin *pkgbin, varbuf_add_str(&db_path, pkg_infodb_get_dir()); varbuf_add_char(&db_path, '/'); + varbuf_end_str(&db_path); db_path_len = db_path.used; - varbuf_add_char(&db_path, '\0'); db_dir = opendir(db_path.buf); if (!db_dir) |