]> git.saurik.com Git - apt.git/blobdiff - ftparchive/cachedb.cc
Merge remote-tracking branch 'upstream/debian/jessie' into debian/sid
[apt.git] / ftparchive / cachedb.cc
index 0901492f7246394109e87c3f11c6691580acf715..c73a64fb774b59538a082a9467224fc5ac9df7d2 100644 (file)
@@ -328,12 +328,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;