Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  5 Jul 2005 09:48:09 -0700 (PDT)
From:      Kevin Oberman <oberman@es.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/83016: most-4.10.1 often fails to read input from the mini-buffer
Message-ID:  <20050705164809.43EA322E34@pak.es.net>
Resent-Message-ID: <200507051650.j65GoCwg090270@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         83016
>Category:       ports
>Synopsis:       most-4.10.1 often fails to read input from the mini-buffer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 05 16:50:12 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Oberman
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
ESnet--The Energy Sciences Network
>Environment:
System: FreeBSD pak.es.net 5.3-STABLE FreeBSD 5.3-STABLE #36: Tue Mar 1 13:05:49 PST 2005 oberman@pak.es.net:/usr/obj/usr/src/sys/PAKv5 i386

>Description:
	most will often fail wit the message "Aborted!" when command are
	entered. Compiling without -O2 temporarily resolved this, but
	the problem re-appeared aver libslang was updated.
>How-To-Repeat:
	Start most(1) on a test file. Enter '/' and any string followed by
	<Enter>.
>Fix:

	Initialize the variable 'i' in most_read_from_minibuffer.
--- most-4.10.1/src/windows.c.orig      Fri Jul  1 15:28:52 2005
+++ most-4.10.1/src/windows.c   Fri Jul  1 15:29:11 2005
@@ -238,7 +238,7 @@

 int most_read_from_minibuffer(char *prompt, char *what, unsigned int buflen)
 {
-   int i;
+   int i = 0;
    char *buf;
    unsigned int len;

I have sent this fix to the author of most, but have not receeived any
response after several days. (He may be on vacation.)
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050705164809.43EA322E34>