pkgsrc/editors/cooledit/patches/patch-ai
adam deaf7ccded Changes 3.17.11:
* Improvements and bug-fixes
* coolicon has been removed
2004-11-08 15:48:20 +00:00

33 lines
953 B
Text

$NetBSD: patch-ai,v 1.2 2004/11/08 15:48:20 adam Exp $
--- editor/shell.c.orig 2004-10-18 19:56:58.000000000 +0000
+++ editor/shell.c
@@ -437,8 +437,8 @@ static void shell_pool_update (int fd, f
{
CWidget *w;
struct running_shell *r;
- int i, count = 0, do_redraw = 0;
- r = &running_shell[i = (int) data];
+ long int i, count = 0, do_redraw = 0;
+ r = &running_shell[i = (long int) data];
if (r->shell_pipe != fd) {
printf ("huh??\n");
}
@@ -559,7 +559,7 @@ int execute_background_display_output (c
char *argv[] =
{0, 0};
pid_t p;
- int i;
+ long int i;
i = restart_shell (0, name, 0);
argv[0] = hme_i (SCRIPT_FILE, i);
savefile (argv[0], s, strlen (s), 0700);
@@ -584,7 +584,7 @@ static int execute_background_shell (str
char *argv[] =
{0, 0};
pid_t p = 0;
- int i;
+ long int i;
i = restart_shell (0, name, 0);
argv[0] = hme_i (SCRIPT_FILE, i);