diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-03-09 01:34:10 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-03-16 17:59:31 +0100 |
commit | d61960d9244340956a27f4ca46aecd15cc75e18b (patch) | |
tree | c8f7cb33e08c84bcf06fbff39647dc03bc103afb /ftparchive/cachedb.cc | |
parent | b0be0e09cfbbcb033eb0b92eaf17ac31a6b9f423 (diff) | |
parent | 1a0619ac765cc0b2f4906c96c1a4d7f510569a3f (diff) |
merge debian/sid into debian/experimental
Diffstat (limited to 'ftparchive/cachedb.cc')
-rw-r--r-- | ftparchive/cachedb.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index df5eb1451..1dc268594 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -322,12 +322,12 @@ bool CacheDB::LoadSource() /*{{{*/ if (Dsc.Read(FileName) == false) return false; - if (Dsc.Data == 0) + if (Dsc.Length == 0) return _error->Error(_("Failed to read .dsc")); - + // Write back the control information InitQuerySource(); - if (Put(Dsc.Data, Dsc.Length) == true) + if (Put(Dsc.Data.c_str(), Dsc.Length) == true) CurStat.Flags |= FlSource; return true; |