diff --git a/src/restic/fuse/file.go b/src/restic/fuse/file.go index 6590b2635..d2fc12222 100644 --- a/src/restic/fuse/file.go +++ b/src/restic/fuse/file.go @@ -116,7 +116,7 @@ func (f *file) getBlobAt(i int) (blob []byte, err error) { } f.blobs[i] = buf[:n] - return blob, nil + return buf[:n], nil } func (f *file) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error { diff --git a/src/restic/repository/repository.go b/src/restic/repository/repository.go index 9c2e90e31..ca5fc92b6 100644 --- a/src/restic/repository/repository.go +++ b/src/restic/repository/repository.go @@ -87,7 +87,7 @@ func (r *Repository) LoadAndDecrypt(t restic.FileType, id restic.ID) ([]byte, er // pack from the backend, the result is stored in plaintextBuf, which must be // large enough to hold the complete blob. func (r *Repository) loadBlob(id restic.ID, t restic.BlobType, plaintextBuf []byte) (int, error) { - debug.Log("Repo.loadBlob", "load %v with id %v (buf %d)", t, id.Str(), len(plaintextBuf)) + debug.Log("Repo.loadBlob", "load %v with id %v (buf %p, len %d)", t, id.Str(), plaintextBuf, len(plaintextBuf)) // lookup plaintext size of blob size, err := r.idx.LookupSize(id, t)