summaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2010-10-09 17:37:46 +0400
committerAndrey Nazarov <skuller@skuller.net>2010-10-09 17:37:46 +0400
commitd66fa13fe464e3504cd488a3884b9410623deeba (patch)
tree7ac4bb67319dbe85f7b8e5b395d44d8ea338fe04 /src/cmd.c
parent1f476c8de03427883ab76c504d4949dc4fa894c7 (diff)
Avoid recursion in wildcard comparsion code.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd.c b/src/cmd.c
index 2293e95..236f2b9 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -553,7 +553,7 @@ void Cmd_ExecTrigger( const char *string ) {
// execute matching triggers
FOR_EACH_TRIGGER( trigger ) {
match = Cmd_MacroExpandString( trigger->match, qfalse );
- if( match && Com_WildCmp( match, string, qfalse ) ) {
+ if( match && Com_WildCmp( match, string ) ) {
Cbuf_AddText( &cmd_buffer, trigger->command );
Cbuf_AddText( &cmd_buffer, "\n" );
}
@@ -1678,7 +1678,7 @@ static void Cmd_List_f( void ) {
i = total = 0;
FOR_EACH_CMD( cmd ) {
total++;
- if( filter && !Com_WildCmp( filter, cmd->name, qfalse ) ) {
+ if( filter && !Com_WildCmp( filter, cmd->name ) ) {
continue;
}
Com_Printf( "%s\n", cmd->name );
@@ -1704,7 +1704,7 @@ static void Cmd_MacroList_f( void ) {
i = 0;
for( macro = cmd_macros, total = 0; macro; macro = macro->next, total++ ) {
- if( filter && !Com_WildCmp( filter, macro->name, qfalse ) ) {
+ if( filter && !Com_WildCmp( filter, macro->name ) ) {
continue;
}
macro->function( buffer, sizeof( buffer ) );