summaryrefslogtreecommitdiff
path: root/dselect/methparse.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-03-13 19:53:28 +0100
committerGuillem Jover <guillem@debian.org>2011-03-14 07:21:56 +0100
commitaddcf0717e7a6076f40a57d8aa9a0164868d46ba (patch)
tree2deaccb834f5cf9e0800417a20e0a3ea10c89a12 /dselect/methparse.cc
parent8ecd3414ebcf0a81a4f23b671c134729dc600a3a (diff)
downloaddpkg-addcf0717e7a6076f40a57d8aa9a0164868d46ba.tar.gz
Use dpkg_db_get_path() instead of using m_asprintf() and admindir
Diffstat (limited to 'dselect/methparse.cc')
-rw-r--r--dselect/methparse.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/methparse.cc b/dselect/methparse.cc
index 00a304c01..594631d82 100644
--- a/dselect/methparse.cc
+++ b/dselect/methparse.cc
@@ -238,7 +238,7 @@ void getcurrentopt() {
char *p;
if (methoptfile == NULL)
- m_asprintf(&methoptfile, "%s/%s", admindir, CMETHOPTFILE);
+ methoptfile = dpkg_db_get_path(CMETHOPTFILE);
coption= 0;
cmo= fopen(methoptfile,"r");