Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ea90c5d3
Commit
ea90c5d3
authored
Aug 09, 2006
by
Jan Djärv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(readline): Change position on %n and \" in sscanf.
parent
1f4edc37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lib-src/ChangeLog
lib-src/ChangeLog
+1
-0
lib-src/etags.c
lib-src/etags.c
+3
-2
No files found.
lib-src/ChangeLog
View file @
ea90c5d3
2006-08-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* etags.c (readline): expect sscanf returns >= 1.
(readline): Change position on %n and \" in sscanf.
2006-08-07 Masatake YAMATO <jet@gyve.org>
...
...
lib-src/etags.c
View file @
ea90c5d3
...
...
@@ -6259,9 +6259,10 @@ readline (lbp, stream)
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) >= 1
&& inp[start] == '"')
{
char *endp = lbp->buffer + start;
char *endp = lbp->buffer +
++
start;
assert (start > 0);
while ((endp = etags_strchr (endp, '"')) != NULL
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment