mirror of https://github.com/MidnightCommander/mc
My previous patch for subshell.h was incorrect. I'm sorry.
Minor patches for OS2_NT. Buffer size for pattern expansion was insufficient.
This commit is contained in:
parent
76496220cc
commit
2ba396f80c
|
@ -704,10 +704,7 @@ restore_console (void)
|
|||
void
|
||||
exec_shell ()
|
||||
{
|
||||
int old_use_subshell = use_subshell;
|
||||
|
||||
do_execute (shell, 0, 1);
|
||||
use_subshell = old_use_subshell;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -40,7 +40,7 @@ void subshell_get_console_attributes (void);
|
|||
void sigchld_handler (int sig);
|
||||
|
||||
#else
|
||||
int use_subshell = 0;
|
||||
#define use_subshell 0
|
||||
#endif /* not HAVE_SUBSHELL_SUPPORT */
|
||||
|
||||
#endif /* __SUBSHELL_H */
|
||||
|
|
|
@ -440,7 +440,7 @@ char *convert_pattern (char *pattern, int match_type, int do_group)
|
|||
int was_wildcard = 0;
|
||||
|
||||
if (easy_patterns){
|
||||
new_pattern = malloc (sizeof (char) * strlen (pattern) * 4); /* times 4 to be safe */
|
||||
new_pattern = malloc (MC_MAXPATHLEN);
|
||||
d = new_pattern;
|
||||
if (match_type == match_file)
|
||||
*d++ = '^';
|
||||
|
|
Loading…
Reference in New Issue