(swigcmp): Fix type-access bug when using
"-with-smobs": Use `strcmp' instead of `strncmp'. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@412 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dad121a673
commit
b14034162e
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ static int swigsort(const void *data1, const void *data2) {
|
|||
static int swigcmp(const void *key, const void *data) {
|
||||
char *k = (char *) key;
|
||||
SwigPtrType **d = (SwigPtrType **) data;
|
||||
return strncmp(k,(*d)->name,(*d)->len);
|
||||
return strcmp(k,(*d)->name);
|
||||
}
|
||||
|
||||
/* Register a new datatype with the type-checker */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue