strcmpi = bad

git-svn-id: https://svn.eduke32.com/eduke32@592 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2008-01-04 02:07:25 +00:00
parent a8a675634e
commit 701a18909c

View file

@ -947,7 +947,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm)
{ {
int i; int i;
if (parm->numparms==1&&!strcmpi(parm->parms[0],"showkeys")) if (parm->numparms==1&&!Bstrcasecmp(parm->parms[0],"showkeys"))
{ {
for(i=0;keynames[i].name;i++)OSD_Printf("%s\n",keynames[i].name); for(i=0;keynames[i].name;i++)OSD_Printf("%s\n",keynames[i].name);
return OSDCMD_OK; return OSDCMD_OK;
@ -961,7 +961,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm)
} }
if (parm->numparms < 2) return OSDCMD_SHOWHELP; if (parm->numparms < 2) return OSDCMD_SHOWHELP;
for(i=0;keynames[i].name;i++)if(!strcmpi(parm->parms[0],keynames[i].name))break; for(i=0;keynames[i].name;i++)if(!Bstrcasecmp(parm->parms[0],keynames[i].name))break;
if (!keynames[i].name) return OSDCMD_SHOWHELP; if (!keynames[i].name) return OSDCMD_SHOWHELP;
Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[1], MAXSCRIPTFILENAMELENGTH-1); Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[1], MAXSCRIPTFILENAMELENGTH-1);