Commit be40f24
committed
Fix #29; Fix incorrect offset calculation
To calculate "offset" to store a new plan at, we should sum the lengths
of the already stored plans within the memory plus the number of plans
to accomodate for NULL character at the end of each plan.
Instead, I used to sum up the lengths of all plans and add 1.1 parent 7796bf4 commit be40f24
1 file changed
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
296 | | - | |
297 | | - | |
| 295 | + | |
298 | 296 | | |
299 | 297 | | |
300 | 298 | | |
| |||
637 | 635 | | |
638 | 636 | | |
639 | 637 | | |
640 | | - | |
641 | | - | |
642 | | - | |
| 638 | + | |
643 | 639 | | |
644 | 640 | | |
645 | 641 | | |
| |||
0 commit comments