summaryrefslogtreecommitdiff
path: root/wk4
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-07 23:18:47 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-07 23:18:47 +0000
commit44b557a98544fa6509aa8488616e08f22c630bfd (patch)
treea9844e5ee17644e2e9c7bf702e766a2a6648bb54 /wk4
parent84f6511352f371fd0493b24da4a7fdb1095ae104 (diff)
Sun, Apr 7, 2024, 4:18 PM -07:00
Diffstat (limited to 'wk4')
-rw-r--r--wk4/pset/recover/recover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wk4/pset/recover/recover.c b/wk4/pset/recover/recover.c
index 4c45d8d..f026dee 100644
--- a/wk4/pset/recover/recover.c
+++ b/wk4/pset/recover/recover.c
@@ -32,10 +32,10 @@ int main(int argc, char *argv[])
// look through the blocks ahead of this one for a new photo
for (file length left)
{
- add 1 to photo length
+ photolength++;
if (first 3 bytes are 0xff 0xd8 0xff AND 4th byte is 0xe* (* denotes anything))
{
- this is the photo length
+ // this is the photo length
break
}
}