Paranoia.

This commit is contained in:
David F. Skoll
2011-12-24 11:04:21 -05:00
parent 5eabd7d8d8
commit bf41b12ccd

View File

@@ -667,7 +667,9 @@ int DoSubst(ParsePtr p, DynamicBuffer *dbuf, Trigger *t, TimeTrig *tt, int jul,
if (isupper(c)) {
os = DBufValue(dbuf);
os += strlen(os) - strlen(s);
*os = UPPER(*os);
if (os >= DBufValue(dbuf)) {
*os = UPPER(*os);
}
}
}