Skip to content

Commit 51c88c9

Browse files
author
Kazuki Suzuki Przyborowski
committed
Update pycatfile.py
1 parent 08d891b commit 51c88c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pycatfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3438,7 +3438,7 @@ def AppendFileHeaderWithContent(fp, filevalues=[], extradata=[], filecontent="",
34383438
outfileoutstr = AppendNullByte(
34393439
formheaersize, formatspecs['format_delimiter']) + outfileoutstr
34403440
outfileheadercshex = GetFileChecksum(
3441-
outfileoutstr, checksumtype[0], True, formatspecs)
3441+
outfileoutstr + fjsoncontent + nullstrecd, checksumtype[0], True, formatspecs)
34423442
outfileoutstr = outfileoutstr + \
34433443
AppendNullBytes([outfileheadercshex, outfilecontentcshex],
34443444
formatspecs['format_delimiter'])
@@ -7751,7 +7751,7 @@ def CatFileToArray(infile, fmttype="auto", seekstart=0, seekend=0, listonly=Fals
77517751
outfcs = inheaderdata[-2].lower()
77527752
outfccs = inheaderdata[-1].lower()
77537753
infcs = GetHeaderChecksum(
7754-
inheaderdata[:-2], inheaderdata[-4].lower(), True, formatspecs)
7754+
inheaderdata[:-2] + [outfprejsoncontent], inheaderdata[-4].lower(), True, formatspecs)
77557755
if(outfcs != infcs and not skipchecksum):
77567756
VerbosePrintOut("File Header Checksum Error with file " +
77577757
outfname + " at offset " + str(outfhstart))

0 commit comments

Comments
 (0)