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
50496bd9
Commit
50496bd9
authored
Jun 05, 2002
by
Francesco Potortì
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Avoid a buffer overrun with sprintf.
parent
382f558b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
lib-src/ChangeLog
lib-src/ChangeLog
+5
-1
lib-src/etags.c
lib-src/etags.c
+4
-4
No files found.
lib-src/ChangeLog
View file @
50496bd9
2002-06-05 Francesco Potorti` <pot@gnu.org>
* etags.c (main): Avoid a buffer overrun with sprintf.
2002-05-30 Richard M. Stallman <rms@gnu.org>
* Makefile.in (LIBS_MAIL): Renamed from LIB_MAIL.
...
...
@@ -22,7 +26,7 @@
* Makefile.in (${archlibdir}): Don't conditionalize on
HAVE_SHARED_GAME_DIR. Instead, test at installation time whether
or not we have access to the specified game user.
* update-game-score.c (SCORE_FILE_PREFIX): Delete.
(main): New argument -d, for specifying directory.
(usage): Document.
...
...
lib-src/etags.c
View file @
50496bd9
...
...
@@ -33,7 +33,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
* Francesco Potort <pot@gnu.org> has maintained it since 1993.
*/
char pot_etags_version[] = "@(#) pot revision number is 15.1
6
";
char
pot_etags_version
[]
=
"@(#) pot revision number is
$Revision:
15.1
8 $
"
;
#define TRUE 1
#define FALSE 0
...
...
@@ -441,7 +441,7 @@ static bool constantypedefs; /* -d: create tags for C #define, enum */
static
bool
globals
;
/* create tags for global variables */
static
bool
declarations
;
/* --declarations: tag them and extern in C&Co*/
static
bool
members
;
/* create tags for C member variables */
static bool no_line_directive; /* ignore #line directives */
static
bool
no_line_directive
;
/* ignore #line directives
(undocumented)
*/
static
bool
update
;
/* -u: update tags */
static
bool
vgrind_style
;
/* -v: create vgrind style index output */
static
bool
no_warnings
;
/* -w: suppress warnings */
...
...
@@ -1254,8 +1254,8 @@ main (argc, argv)
if
(
update
)
{
char cmd[BUFSIZ];
sprintf (cmd, "sort -o %s %s",
tagfile
, tagfile);
char
cmd
[
2
*
BUFSIZ
+
10
];
sprintf
(
cmd
,
"sort -o %
.*
s %
.*
s"
,
BUFSIZ
,
tagfile
,
BUFSIZ
,
tagfile
);
exit
(
system
(
cmd
));
}
return
GOOD
;
...
...
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