Use Strchr/strchr instead of Strstr/strstr when searching for a single
character. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2f6a268e55
commit
1e19f11fdc
11 changed files with 38 additions and 38 deletions
|
|
@ -55,7 +55,7 @@ static DOH *encode(char *name, DOH *s) {
|
|||
DOH *handle, *ns;
|
||||
DOH *(*fn)(DOH *);
|
||||
long pos;
|
||||
char *cfmt = strstr(name,":");
|
||||
char *cfmt = strchr(name,':');
|
||||
DOH *tmp = 0;
|
||||
if (cfmt) {
|
||||
tmp = NewString(cfmt + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue