Path: utzoo!utgpu!water!watmath!clyde!att!chinet!mcdchg!nud!anasaz!chad
From: chad@anasaz.UUCP (Chad R. Larson)
Newsgroups: comp.unix.microport
Subject: Re: running "pcomm" on Sys V/AT
Keywords: bug fix
Message-ID: <1261@anasaz.UUCP>
Date: 20 Sep 88 07:09:34 GMT
References: <633@wa3wbu.UUCP>
Reply-To: chad@dcfinc.UUCP (Chad R. Larson)
Organization: DCF Inc, Phoenix AZ
Lines: 27

In article <633@wa3wbu.UUCP> john@wa3wbu.UUCP (John Gayman) writes:
>
>    Has anyone been successfull in compiling and running the recently
>posted "pcomm" communications software under Sys V/AT ?  I have no
>trouble getting it to compile without errors but it always "core dumps"
>when I try anything to use the modem or exit.

There was a simple bug in line 216 of file port.c that resulted in 
dereferencing a NULL pointer.  I e-mailed the fix to the author, I
guess I should have posted it too, but I thought a bunch of other
folks would.   The line should read:

  if (lock_path != NULL && *lock_path != NULL) {

The shipped code checks what lock_path points to *before* checking
it for NULL.

No Charge!	-crl
---------------
"I read the news today, oh boy!"  --John Lennon
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| DCF, Inc.               | UUCP: ...ncar!noao!nud!anasaz!dcfinc!chad   |
| 14623 North 49th Place  | Ma Bell: (602) 953-1392                     |
| Scottsdale, AZ 85254    | Loran: N-33deg37min20sec W-111deg58min26sec |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|         Disclaimer: These ARE the opinions of my employer!            |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=