From owner-freebsd-ports Sat Jan 26 14:30: 6 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D6C2B37B400 for ; Sat, 26 Jan 2002 14:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0QMU1e58522; Sat, 26 Jan 2002 14:30:01 -0800 (PST) (envelope-from gnats) Date: Sat, 26 Jan 2002 14:30:01 -0800 (PST) Message-Id: <200201262230.g0QMU1e58522@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Scot W. Hetzel" Subject: Re: ports/34059: New port Reply-To: "Scot W. Hetzel" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/34059; it has been noted by GNATS. From: "Scot W. Hetzel" To: freebsd-gnats-submit@FreeBSD.org, todorov_bg@gmx.net Cc: Subject: Re: ports/34059: New port Date: Sat, 26 Jan 2002 16:25:37 -0600 (CST) I have tested this port, and found one problem in the code that caused it to terminate with a signal 11, Segmentation fault. I was able to find the problem in the socket_getline function. This function was trying to assign a string to a char * variable, that hadn't been malloc'd. The following patch fixes the problem. --- socket.c.orig Tue Apr 17 21:54:11 2001 +++ socket.c Sat Jan 26 15:38:48 2002 @@ -120,7 +120,7 @@ int socket_getline (struct postsocket *sock) { char * pch; - char * msg; + char msg[1024]; char endch = '\0'; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message