diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-08 00:12:55 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-08 00:12:55 +0000 |
commit | b98ecb812b2fa6d841fd9e25d3f0a597439a3f55 (patch) | |
tree | 6323ab9b2852339d41aa156ea19e68dd7814ce89 /wk4/pset/recover | |
parent | cd33f3061b777e05d3de3a38e804b64893835b67 (diff) |
Sun, Apr 7, 2024, 5:12 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 82b65a7..28ef2ba 100644 --- a/wk4/pset/recover/recover.c +++ b/wk4/pset/recover/recover.c @@ -52,9 +52,9 @@ int main(int argc, char *argv[]) // make buffer space to store the data uint32_t data[photolength][16]; // read the photo to data in blocks of 32 bits - fread(&data, sizeof(uint32_t), 16 * photolength, card); + fread(&data, sizeof(uint8_t), 16 * photolength, card); // write the photo from data - fwrite(&data, sizeof(uint32_t), 16 * photolength, point); + fwrite(&data, sizeof(uint8_t), 16 * photolength, point); // Close the photo file // repeat this process for other photos } |