mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
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:
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user