Skip to content

Commit

Permalink
[ACLiC] The source string is not null terminated!
Browse files Browse the repository at this point in the history
  • Loading branch information
Axel-Naumann committed Oct 2, 2018
1 parent c75c736 commit b0bb7bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/base/src/TSystem.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3245,7 +3245,7 @@ int TSystem::CompileMacro(const char *filename, Option_t *opt,
if (current==sz-1) {
sz = 2*sz;
char *newline = new char[sz];
strcpy(newline,line);
memcpy(newline,line, current);
delete [] line;
line = newline;
}
Expand Down

0 comments on commit b0bb7bd

Please sign in to comment.