aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 2901704a..fa5bb9a4 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -654,7 +654,10 @@ char **split_command_parts( char *command )
{
q = *s = 0;
}
- cmd[k] = NULL;
+
+ /* Full zero-padding for easier argc checking. */
+ while( k <= IRC_MAX_ARGS )
+ cmd[k++] = NULL;
return cmd;
}