Greg Minshall (firstname.lastname@example.org)
14 Sep 88 17:53:54 GMT
>From article <email@example.com>, by firstname.lastname@example.org (Tom Corsetti):
> I'm posting this article for a friend here who has no access to 'news'.
> He has a sun4 running sunos 4.0 (all the 4.3 bsd stuff). He's trying
> to get tn3270 (the telnet for emulating ibm 3270 type terminals) to
> work. He says that it compiles ok using the makefile for 4.3 bsd. But
> when he tries to run it, he gets a segmentation fault when the software
> appears to be trying to make a connection. Has anyone out there got
> any suggestions, or run into this problem before? Thanks in advance!
> - Tom Corsetti
This fix goes in telnet.c (or maybe tn3270.c, if you are using an
older version). tn3270 (and telnet, for that matter) were using
a "varargs" routine without using the "varargs" mechanism.
Replace the routine "call()" with the code below.
Sorry, about that.
* Call routine with argc, argv set from args (terminated by 0).
typedef int (*intrtn_t)();
int argno = 0;
routine = (va_arg(ap, intrtn_t));
while (args[argno++] = va_arg(ap, char *))
return (*routine)(argno, args);
This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:43:30 GMT