X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=lib%2FFile%2FKDBX%2FDumper%2FV3.pm;h=cf1f1ed85dae3d5ee7f17bc4bffc4ef444a03e7f;hb=fe0093f5f317cd136a2328abb7b0c31a69d4fe33;hp=b8cf01c1f056ca3f2c0020d448752f4ce72834a9;hpb=37b09e0f2832514b33de4499a83f22d5ffe7c0a3;p=chaz%2Fp5-File-KDBX diff --git a/lib/File/KDBX/Dumper/V3.pm b/lib/File/KDBX/Dumper/V3.pm index b8cf01c..cf1f1ed 100644 --- a/lib/File/KDBX/Dumper/V3.pm +++ b/lib/File/KDBX/Dumper/V3.pm @@ -59,7 +59,7 @@ sub _write_header { my $type = shift; my $val = shift // ''; - $type = kdbx_header($type); + $type = to_header_constant($type); if ($type == HEADER_END) { $val = "\r\n\r\n"; } @@ -152,7 +152,6 @@ sub _write_body { $fh->print($kdbx->headers->{+HEADER_STREAM_START_BYTES}) or throw 'Failed to write start bytes'; - $fh->flush; $kdbx->key($key);