10 |
|
|
11 |
|
int main(int argc, char *argv[]) |
12 |
|
{ |
13 |
+ |
if (argc < 1) |
14 |
+ |
return 1; |
15 |
+ |
|
16 |
+ |
umask(S_IWGRP | S_IWOTH); |
17 |
+ |
|
18 |
|
int exception; |
19 |
|
jmp_buf environment; |
20 |
|
|
62 |
|
|
63 |
|
for (Shell shell = sh; shell <= custom; ++shell) |
64 |
|
{ |
65 |
< |
shell_regex = shell_regex ? realloc(shell_regex, size += strlen(shells[shell].name) + (shell != custom ? 2 : 1)) : calloc(size += strlen(shells[shell].name) + 2, 1); |
65 |
> |
shell_regex = shell_regex ? realloc(shell_regex, size += strlen(shells[shell].name) + (shell != custom ? 1 : 0)) : calloc(size += strlen(shells[shell].name) + 2, 1); |
66 |
|
strlcat(shell_regex, shells[shell].name, size); |
67 |
|
|
68 |
|
if (shell != custom) |