Index: uspace/app/bdsh/compl.c
===================================================================
--- uspace/app/bdsh/compl.c	(revision d1e196f782180ef828064caefc47c1fa0ed2111c)
+++ uspace/app/bdsh/compl.c	(revision 8a6ba94fc1678442636a8063b53b72a7198d952e)
@@ -98,5 +98,9 @@
 	int retval;
 	tokenizer_t tok;
-	token_t tokens[WORD_MAX];
+	token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
+	if (tokens == NULL) {
+		retval = ENOMEM;
+		goto error;
+	}
 	int current_token;
 	size_t tokens_length;
@@ -254,4 +258,6 @@
 	if (cs != NULL)
 		free(cs);
+	if (tokens != NULL)
+		free(tokens);
 
 	return retval;
