Fixed not '0' terminated string, that could result in a getting a bad error code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5424 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c76b6ec747
commit
595d36bf1a
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ Swig_warning(int wnum, const String_or_char *filename, int line, const char *fmt
|
|||
}
|
||||
if (t != temp) {
|
||||
msg++;
|
||||
*t = 0;
|
||||
wnum = atoi(temp);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue