shithub: qk1

Download patch

ref: 042cdd0a45e01b52d76f5e6045b23815b948a4fc
parent: d3fa02cdc43b3f9f050dbfe7b4d6797c60804fc9
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Sat Nov 25 21:03:44 EST 2023

PR_StrTmp: fix an embarassing mistake (& vs %)

--- a/pr_edict.c
+++ b/pr_edict.c
@@ -49,7 +49,7 @@
 char *
 PR_StrTmp(pr_t *pr)
 {
-	return &pr->tempstr[PRTEMPSTR_SIZE * (pr->num_tempstr++ & MAX_PRTEMPSTR)];
+	return &pr->tempstr[PRTEMPSTR_SIZE * (pr->num_tempstr++ % MAX_PRTEMPSTR)];
 }
 
 int