commit b2b04b47e00f0c9ea20fbb5e723cda97e33c30bc parent 3e3c7ed2aec5aab15371b13c94887a3f6b0052a8 Author: hhvn <dev@hhvn.uk> Date: Tue, 25 Jan 2022 21:33:27 +0000 zygo.c: make last link on page accessible Diffstat:
M | zygo.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zygo.c b/zygo.c @@ -852,7 +852,7 @@ end: Elem * strtolink(char *str) { - if (atoi(str) >= page->lastid || atoi(str) < 0) { + if (atoi(str) > page->lastid || atoi(str) < 0) { error("no such link: %s", str); return NULL; }