# | Line 60 | Line 60 | int main(int argc, char *argv[]) | |
---|---|---|
60 | ||
61 | for (Shell shell = sh; shell <= custom; ++shell) | |
62 | { | |
63 | < | shell_regex = shell_regex ? realloc(shell_regex, size += strlen(shells[shell].name) + (shell != custom ? 2 : 1)) : calloc(size += strlen(shells[shell].name) + 2, 1); |
63 | > | shell_regex = shell_regex ? realloc(shell_regex, size += strlen(shells[shell].name) + (shell != custom ? 1 : 0)) : calloc(size += strlen(shells[shell].name) + 2, 1); |
64 | strlcat(shell_regex, shells[shell].name, size); | |
65 | ||
66 | if (shell != custom) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |