Skip to content

Commit

Permalink
dc: fix off-by-one initialising symlst[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciaran Anscomb committed Jan 23, 2025
1 parent 7863335 commit 984f056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Applications/V7/cmd/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ void init(int argc, char *argv[])
readptr = &readstk[0];
k = 0;
sp = sptr = &symlst[0];
while (sptr < &symlst[TBLSZ]) {
while (sptr < &symlst[TBLSZ-1]) {
sptr->next = ++sp;
sptr++;
}
Expand Down

0 comments on commit 984f056

Please sign in to comment.