> i just downloaded it.  ran it under fc4 and it drops core.
> now, if i can just find out where they put the core file!!

I noticed that it seg faults when you don't specify an auth server. Due
to a null dereference in netmkaddr(authserver, "tcp", "567") from
authdial().

I added the patch below to fix it as well as provide support for $auth.


Index: cpu.c
===================================================================
RCS file: /cvs/drawterm/cpu.c,v
retrieving revision 1.3
diff -u -r1.3 cpu.c
--- cpu.c       4 Nov 2005 17:06:57 -0000       1.3
+++ cpu.c       4 Nov 2005 22:59:48 -0000
@@ -181,6 +181,12 @@
                        fatal(0, "set $cpu");
                system = p;
        }
+       if(authserver == nil) {
+               p = getenv("auth");
+               if(p == 0)
+                       fatal(0, "set $auth");
+               authserver = p;
+       }
 
        if(err = rexcall(&data, system, srvname))
                fatal(1, "%s: %s", err, system);

Reply via email to