From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: fix the sscanf usage in etags Date: Mon, 07 Aug 2006 12:38:50 +0900 (JST) Message-ID: <20060807.123850.192456906.jet@gyve.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154921985 19566 80.91.229.2 (7 Aug 2006 03:39:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Aug 2006 03:39:45 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 07 05:39:44 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 1G9vxr-0006NG-00 for ged-emacs-devel@m.gmane.org; Mon, 07 Aug 2006 05:39:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9vxq-0005fT-G6 for ged-emacs-devel@m.gmane.org; Sun, 06 Aug 2006 23:39:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G9vxO-0005TE-Ex for emacs-devel@gnu.org; Sun, 06 Aug 2006 23:39:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G9vxL-0005QA-B1 for emacs-devel@gnu.org; Sun, 06 Aug 2006 23:39:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G9vxL-0005Q5-7I for emacs-devel@gnu.org; Sun, 06 Aug 2006 23:39:07 -0400 Original-Received: from [66.187.233.31] (helo=mx1.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G9w1U-0005qn-JI for emacs-devel@gnu.org; Sun, 06 Aug 2006 23:43:24 -0400 Original-Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k773d2p5015099 for ; Sun, 6 Aug 2006 23:39:02 -0400 Original-Received: from pobox.tokyo.redhat.com (pobox.tokyo.redhat.com [172.16.33.225]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k773d0uH030284 for ; Sun, 6 Aug 2006 23:39:01 -0400 Original-Received: from localhost (dhcp98.tokyo.redhat.com [172.16.33.98]) by pobox.tokyo.redhat.com (8.12.8/8.12.8) with ESMTP id k773cvWx020767 for ; Mon, 7 Aug 2006 12:39:00 +0900 Original-To: emacs-devel@gnu.org X-Mailer: Mew version 4.2.53 on Emacs 22.0.51 / Mule 5.0 (SAKAKI) 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:58152 Archived-At: Could someone install this patch? 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;