diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-07 23:15:54 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-07 23:15:54 +0000 |
commit | 9a3395bfc7d56348056a82d3675dda4f877d9aeb (patch) | |
tree | e797eacfb9a91a5e701ec87272951ea72ada7575 /wk4/pset/recover | |
parent | 074e85e82bff978d95b5609479750df7db0b5e24 (diff) |
Sun, Apr 7, 2024, 4:15 PM -07:00
Diffstat (limited to 'wk4/pset/recover')
-rw-r--r-- | wk4/pset/recover/recover.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wk4/pset/recover/recover.c b/wk4/pset/recover/recover.c index 43b1cbd..1821637 100644 --- a/wk4/pset/recover/recover.c +++ b/wk4/pset/recover/recover.c @@ -27,7 +27,7 @@ int main(int argc, char *argv[]) { if (first 3 bytes are 0xff 0xd8 0xff AND 4th byte is 0xe* (* denotes anything)) { - this is a photo; remember the pointer + this is a photo; remember the pointer (call it inptr) int photolength = 0; // look through the blocks ahead of this one for a new photo for (file length left) @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) Open output file with name (filename) Copy data from old to new file --> uint32_t data[photolength][16]; - fread(&data, ) + fread(&data, sizeof(uint32_t), 16, inptr) fwrite() } } |