From 701a18909c37d92bc1bb0abb29db2a8d43abadb4 Mon Sep 17 00:00:00 2001 From: plagman Date: Fri, 4 Jan 2008 02:07:25 +0000 Subject: [PATCH] strcmpi = bad git-svn-id: https://svn.eduke32.com/eduke32@592 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/osdcmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/osdcmds.c b/polymer/eduke32/source/osdcmds.c index 6703c443e..7fcac2c39 100644 --- a/polymer/eduke32/source/osdcmds.c +++ b/polymer/eduke32/source/osdcmds.c @@ -947,7 +947,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm) { 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); return OSDCMD_OK; @@ -961,7 +961,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm) } 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; Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[1], MAXSCRIPTFILENAMELENGTH-1);