]> granicus.if.org Git - file/commit
|I killed the bug... The problem was that strtok() was corrupting the
authorIan Darwin <ian@darwinsys.com>
Fri, 11 Sep 1992 10:08:52 +0000 (10:08 +0000)
committerIan Darwin <ian@darwinsys.com>
Fri, 11 Sep 1992 10:08:52 +0000 (10:08 +0000)
commiteef93dcd5a9981cda706a85bd820527c54b30b00
treefb78017b42d095e6f1bf15f18561874ae3dafc3b
parent80675e6ee30319e994977828a59cec4be0ea66b0
|I killed the bug... The problem was that strtok() was corrupting the
|input buffer so the uncompressed result was not correct, and it would
|fail the tar checksum.
|
|I make a copy to nbuf and use that buffer to strtok()...
|[ascmagic.c bugfix]
|
|I also restored the value of the buffer in another place so that
|buf[] always contains the first HOWMANY bytes of the file.
|[softmagic.c bug fix]
|
|christos
src/ascmagic.c
src/softmagic.c