shithub: pplay

Download patch

ref: f716762599fbab0ad8043d6d6bad1f4e86a6b9e9
parent: 36e8f4aa44256951378d2240aa15e08025ba40d6
author: qwx <qwx@sciops.net>
date: Mon Sep 4 21:05:48 EDT 2023

draw: fix disallowing jumps near a boundary

--- a/draw.c
+++ b/draw.c
@@ -438,7 +438,7 @@
 setjump(vlong off)
 {
 	off &= ~3;
-	if(off < current->from || off > current->to - Outsz){
+	if(off < current->from || off > current->to - Sampsz){
 		werrstr("cannot jump outside of loop bounds");
 		return -1;
 	}