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:
Pavel Machek 1998-04-08 19:37:06 +00:00
parent 76496220cc
commit 2ba396f80c
4 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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 */

View File

@ -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++ = '^';

View File

@ -257,7 +257,6 @@ struct utimbuf {
#ifdef _OS_NT
# undef mc_rmdir
# undef mc_rename
#endif
#ifdef OS2_NT