Skip to content

Commit

Permalink
Fetcher: Fix issue #25
Browse files Browse the repository at this point in the history
This closes #25.
  • Loading branch information
ry755 committed Jul 25, 2023
1 parent ccd0b83 commit 6ab8c6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions applications/fetcher/Browser.okm
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ MODULE Browser;
(* find the first space in the name *)
j := 7;
WHILE j DO
IF GETCHAR(PTROF(browserFileList) + (i * 11) + j) # 32 THEN
IF GETCHAR(PTROF(browserFileList) + (browserPage * 11 * 12) + (i * 11) + j) # 32 THEN
BREAK();
END;
j := j - 1;
Expand All @@ -222,7 +222,7 @@ MODULE Browser;

(* j now equals the index of where the file name ends and the extension begins *)
PUTCHAR(browserFileListFriendly[i] + j, 46);
copy_memory_bytes(PTROF(browserFileList) + (i * 11) + 8, browserFileListFriendly[i] + j + 1, 3);
copy_memory_bytes(PTROF(browserFileList) + (browserPage * 11 * 12) + (i * 11) + 8, browserFileListFriendly[i] + j + 1, 3);
PUTCHAR(browserFileListFriendly[i] + j + 4, 0);

i := i + 1;
Expand Down

0 comments on commit 6ab8c6d

Please sign in to comment.