From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: fix the sscanf usage in etags Date: Tue, 08 Aug 2006 11:35:02 +0200 Message-ID: <44D85AC6.6070701@swipnet.se> References: <20060807.123850.192456906.jet@gyve.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155029780 4135 80.91.229.2 (8 Aug 2006 09:36:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 Aug 2006 09:36:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 08 11:36:18 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GAO0X-0001Kf-Ca for ged-emacs-devel@m.gmane.org; Tue, 08 Aug 2006 11:36:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAO0W-0000t3-RQ for ged-emacs-devel@m.gmane.org; Tue, 08 Aug 2006 05:36:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GAO0I-0000qy-EG for emacs-devel@gnu.org; Tue, 08 Aug 2006 05:36:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GAO0G-0000q2-M7 for emacs-devel@gnu.org; Tue, 08 Aug 2006 05:36:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GAO0G-0000pz-Hd for emacs-devel@gnu.org; Tue, 08 Aug 2006 05:36:00 -0400 Original-Received: from [81.228.9.181] (helo=av7-1-sn3.vrr.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GAO4h-0000XY-5f for emacs-devel@gnu.org; Tue, 08 Aug 2006 05:40:35 -0400 Original-Received: by av7-1-sn3.vrr.skanova.net (Postfix, from userid 502) id 44D0437E9F; Tue, 8 Aug 2006 11:35:56 +0200 (CEST) Original-Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av7-1-sn3.vrr.skanova.net (Postfix) with ESMTP id 350BE37E99; Tue, 8 Aug 2006 11:35:56 +0200 (CEST) Original-Received: from coolsville.localdomain (81-235-205-204-no59.tbcn.telia.com [81.235.205.204]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 2675B37E4A; Tue, 8 Aug 2006 11:35:53 +0200 (CEST) User-Agent: Thunderbird 1.5.0.4 (X11/20060614) Original-To: Masatake YAMATO In-Reply-To: <20060807.123850.192456906.jet@gyve.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58174 Archived-At: Masatake YAMATO skrev: > Could someone install this patch? > Done. Jan D. > I have some troubles in my cvs settings. > Thanks in advance. > > 2006-08-07 Masatake YAMATO > > * etags.c (readline): expect sscanf returns 2, > not 1. > > --- orig/lib-src/etags.c > +++ mod/lib-src/etags.c > @@ -6296,7 +6296,7 @@ > int start, lno; > > if (DEBUG) start = 0; /* shut up the compiler */ > - if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 1) > + if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 2) > { > char *endp = lbp->buffer + start; > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel