aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Please Don't Use the Web From to Post


From: Kevin Atkinson
Subject: Please Don't Use the Web From to Post
Date: Wed, 10 Nov 1999 17:56:28 -0500 (EST)

The aspell mailing list address is address@hidden  Please
don't use the Web From to post as it will not add a 
  To: address@hidden
To the header of the message thus when people reply to your message it
will not go back to the list unless they add address@hidden
to the header like I do.

Thanks.

 ---
Kevin Atkinson
address@hidden
http://metalab.unc.edu/kevina/



From address@hidden  Thu May 24 22:26:16 2001
Return-Path: <address@hidden>
Received: from localhost (localhost [127.0.0.1])
        by kevins-linux.atkinson.inet (8.9.3/8.9.3) with ESMTP id CAA14621
        for <address@hidden>; Fri, 12 Nov 1999 02:06:39 -0500
Received: from mail
        by localhost with POP3 (fetchmail-5.0.0)
        for address@hidden (single-drop); Fri, 12 Nov 1999 02:06:39 -0500 (EST)
Received: from mx5-rwc.mail.home.com ([24.0.95.34])
          by mail.rdc1.md.home.com (InterMail v4.01.01.00 201-229-111)
          with ESMTP
          id <address@hidden>
          for <address@hidden>;
          Thu, 11 Nov 1999 23:05:59 -0800
Received: from mx1-rwc.mail.home.com (mx1-rwc.mail.home.com [24.0.95.30])
        by mx5-rwc.mail.home.com (8.9.3/8.9.0) with ESMTP id XAA03079
        for <address@hidden>; Thu, 11 Nov 1999 23:05:57 -0800 (PST)
Received: from franklin.oit.unc.edu (franklin.oit.unc.edu [152.2.22.59])
        by mx1-rwc.mail.home.com (8.9.1/8.9.1) with SMTP id XAA11097
        for <address@hidden>; Thu, 11 Nov 1999 23:05:57 -0800 (PST)
Sender: address@hidden
Message-ID: <address@hidden>
Date: Fri, 12 Nov 1999 02:06:24 -0500
From: Kevin Atkinson <address@hidden>
X-Accept-Language: en
MIME-Version: 1.0
To: Aaron Sherman <address@hidden>,
 address@hidden
Subject: Re: Fix for Major bug in aspell world length handling
References: <address@hidden>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
List-Unsubscribe: <mailto:address@hidden>
List-Software: Lyris Server version 3.0
List-Subscribe: <mailto:address@hidden>
List-Owner: <mailto:address@hidden>
X-URL: <http://metalab.unc.edu/kevina/aspell/>
X-List-Host: Guest Mailing Lists Hosted on SunSITE 
X-Message-Id: <address@hidden>
Precedence: bulk
Content-Length: 1879
Lines: 65
Status: RO
X-Status: 
X-Keywords:                 
X-UID: 140

Kevin Atkinson wrote:
> 
> On Wed, 10 Nov 1999, Aaron Sherman wrote:
> 
> > Am I doing something wrong? Is anyone using aspell under Solaris? I try to
> > spell-check a file using the "-a" option (as I'm calling this from a
> > program), and it segfaults. I run gdb on it, and sure enough metaphone.cc
> > creates a variable called "char wname[60]" and tries to put each word into
> > it. If the word is larger than 60 characters, BOOM! I can't even see how
> > this is Solaris-specific.
> >
> > Granted, words longer than 60 characters are... rare, but not everything in
> > a text file is going to be a valid word. I routinely see aspell crashing
> > because of this.
> 
> You are absolutly right.  I will look into it this weekend.  It has never
> come up in my use of aspell.
> 

Here is a fix for that problem.  I will have a new release out in a
couple of days. Apply the patch in the util/ directory.

--- metaphone.cc~       Mon Dec 28 04:26:53 1998
+++ metaphone.cc        Fri Nov 12 01:49:50 1999
@@ -418,8 +418,7 @@
   int vowelAfter, vowelBefore, frontvAfter;
   string metaph;
   
-  char wname[60];
-  char *ename=wname;
+  char *ename = new char[strlen(name)];
   
   jj = 0;
   for (ii=0; name[ii]; ++ii) {
@@ -431,7 +430,7 @@
   metaph.reserve(jj);
   ename[jj] = '\0';
   
-  if (jj == 0) return metaph;
+  if (jj != 0) {
 
                         /* if ae, gn, kn, pn, wr then drop the first
letter */
   if ( (chrptr=strchr(excpPAIR,ename[0]) ) != 0 ) {
@@ -613,7 +612,9 @@
     }
 
   }
+  }
 
+  delete[] ename;
   if (metaph.size() == 0) metaph = "-";
   return metaph;
 }


-- 
Kevin Atkinson
address@hidden
http://metalab.unc.edu/kevina/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]