2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
d5c688188b Fix stray null write: replace sizeof(buf) with *buf = '\0' in var_subst()
Agent-Logs-Url: https://github.com/tbamud/tbamud/sessions/339cbdde-5de4-4f33-aea6-82df3efbd9c4

Co-authored-by: welcor <357770+welcor@users.noreply.github.com>
2026-04-25 14:44:04 +00:00
copilot-swe-agent[bot]
d627638f56 Initial plan 2026-04-25 14:43:35 +00:00

View File

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