]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - interactive.c
string: Introduce arr_alloc().
[paraslash.git] / interactive.c
index 98882ce6d772c162be24ea481daf8f847eb34d5c..01f25fb3d52654f3a45413891b0b170b3da5a7a5 100644 (file)
@@ -693,7 +693,7 @@ char **i9e_complete_commands(const char *word, struct i9e_completer *completers)
                if (is_prefix(word, cmd, len))
                        match_count++;
        }
-       matches = alloc((match_count + 1) * sizeof(*matches));
+       matches = arr_alloc(match_count + 1, sizeof(*matches));
        for (i = 0, match_count = 0; (cmd = completers[i].name); i++)
                if (is_prefix(word, cmd, len))
                        matches[match_count++] = para_strdup(cmd);