diff options
Diffstat (limited to 'source/files.c')
-rw-r--r-- | source/files.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/files.c b/source/files.c index c3e624d..738ffb0 100644 --- a/source/files.c +++ b/source/files.c @@ -2221,11 +2221,15 @@ static void FS_Stats_f( void ) { } } -static const char *FS_Link_g( const char *partial, int state ) { +static const char *FS_Link_g( const char *partial, int argnum, int state ) { static int length; static fsLink_t *link; char *name; + if( argnum != 1 ) { + return NULL; + } + if( !state ) { length = strlen( partial ); link = fs_links; |