Fix stray null write from sizeof(pointer) bug in var_subst() (#190)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: welcor <357770+welcor@users.noreply.github.com>
This commit is contained in:
Copilot
2026-04-25 23:28:40 +02:00
committed by GitHub
parent af06fa0621
commit a049fddcea

View File

@@ -1722,5 +1722,5 @@ void var_subst(void *go, struct script_data *sc, trig_data *trig,
left -= len; left -= len;
} /* else if *p .. */ } /* else if *p .. */
} /* while *p .. */ } /* while *p .. */
buf[sizeof(buf) - 1] = '\0'; *buf = '\0';
} }