/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Cutscene::Cutscene()
{
- strcpy(sprite, "");
- strcpy(text, "");
+ sprite[0] = 0;
+ text[0] = 0;
waitTime = 0;
}
void Cutscene::appendText(const char *line)
{
- sprintf(text, "%s %s", text, line);
+ strlcat(text, " ", sizeof text);
+ strlcat(text, line, sizeof text);
}