mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-30 04:41:51 +02:00
Compare commits
2 Commits
1e5eca00ba
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed5f6a81da | ||
|
|
a2e3c2481d |
@@ -1636,6 +1636,13 @@ void var_subst(void *go, struct script_data *sc, trig_data *trig,
|
|||||||
int paren_count = 0;
|
int paren_count = 0;
|
||||||
int dots = 0;
|
int dots = 0;
|
||||||
|
|
||||||
|
/* reject lines that would overflow our fixed-size buffers */
|
||||||
|
if (strnlen(line, MAX_INPUT_LENGTH) >= MAX_INPUT_LENGTH) {
|
||||||
|
script_log("Trigger VNum %d: variable substitution line too long, ignoring.", GET_TRIG_VNUM(trig));
|
||||||
|
*buf = '\0';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* skip out if no %'s */
|
/* skip out if no %'s */
|
||||||
if (!strchr(line, '%')) {
|
if (!strchr(line, '%')) {
|
||||||
strcpy(buf, line);
|
strcpy(buf, line);
|
||||||
|
|||||||
Reference in New Issue
Block a user