all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* fix the sscanf usage in etags
@ 2006-08-07  3:38 Masatake YAMATO
  2006-08-08  9:35 ` Jan Djärv
  2006-08-09  0:06 ` Kevin Ryde
  0 siblings, 2 replies; 9+ messages in thread
From: Masatake YAMATO @ 2006-08-07  3:38 UTC (permalink / raw)


Could someone install this patch?

I have some troubles in my cvs settings.
Thanks in advance.
 
2006-08-07  Masatake YAMATO  <jet@gyve.org>

	* 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;

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-08-10  6:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-07  3:38 fix the sscanf usage in etags Masatake YAMATO
2006-08-08  9:35 ` Jan Djärv
2006-08-09  0:06 ` Kevin Ryde
2006-08-09  6:57   ` Jan Djärv
2006-08-09  7:57     ` Masatake YAMATO
2006-08-09 13:20       ` Jan Djärv
2006-08-09 14:10         ` Masatake YAMATO
2006-08-10  0:15     ` Kevin Ryde
2006-08-10  6:47       ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.