mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-13 02:05:43 +00:00
copy null string terminator.
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1359 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -2294,7 +2294,7 @@ int Parser::parse_wave_helper(std::istream & fs, MilkdropPreset * preset, int
|
||||
/// HACK the parse_line code already parsed the per_pixel variable name. This handles that case
|
||||
/// Parser needs reworked. Don't have time for it. So this is the result.
|
||||
if (init_string)
|
||||
strncpy(string, init_string, strlen(init_string));
|
||||
strncpy(string, init_string, strlen(init_string)+1);
|
||||
else
|
||||
{
|
||||
if (parseToken(fs, string) != tEq)
|
||||
|
||||
Reference in New Issue
Block a user