diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 6 | ||||
| -rw-r--r-- | lib-src/etags.c | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 71ac022f1fa..9e5b38a417a 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2002-06-05 Francesco Potorti` <pot@gnu.org> | ||
| 2 | |||
| 3 | * etags.c (main): Avoid a buffer overrun with sprintf. | ||
| 4 | |||
| 1 | 2002-05-30 Richard M. Stallman <rms@gnu.org> | 5 | 2002-05-30 Richard M. Stallman <rms@gnu.org> |
| 2 | 6 | ||
| 3 | * Makefile.in (LIBS_MAIL): Renamed from LIB_MAIL. | 7 | * Makefile.in (LIBS_MAIL): Renamed from LIB_MAIL. |
| @@ -22,7 +26,7 @@ | |||
| 22 | * Makefile.in (${archlibdir}): Don't conditionalize on | 26 | * Makefile.in (${archlibdir}): Don't conditionalize on |
| 23 | HAVE_SHARED_GAME_DIR. Instead, test at installation time whether | 27 | HAVE_SHARED_GAME_DIR. Instead, test at installation time whether |
| 24 | or not we have access to the specified game user. | 28 | or not we have access to the specified game user. |
| 25 | 29 | ||
| 26 | * update-game-score.c (SCORE_FILE_PREFIX): Delete. | 30 | * update-game-score.c (SCORE_FILE_PREFIX): Delete. |
| 27 | (main): New argument -d, for specifying directory. | 31 | (main): New argument -d, for specifying directory. |
| 28 | (usage): Document. | 32 | (usage): Document. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index b6f1c1b6ce1..b21175e21c2 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -33,7 +33,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |||
| 33 | * Francesco Potort́ <pot@gnu.org> has maintained it since 1993. | 33 | * Francesco Potort́ <pot@gnu.org> has maintained it since 1993. |
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | char pot_etags_version[] = "@(#) pot revision number is 15.16"; | 36 | char pot_etags_version[] = "@(#) pot revision number is $Revision: 15.18 $"; |
| 37 | 37 | ||
| 38 | #define TRUE 1 | 38 | #define TRUE 1 |
| 39 | #define FALSE 0 | 39 | #define FALSE 0 |
| @@ -441,7 +441,7 @@ static bool constantypedefs; /* -d: create tags for C #define, enum */ | |||
| 441 | static bool globals; /* create tags for global variables */ | 441 | static bool globals; /* create tags for global variables */ |
| 442 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ | 442 | static bool declarations; /* --declarations: tag them and extern in C&Co*/ |
| 443 | static bool members; /* create tags for C member variables */ | 443 | static bool members; /* create tags for C member variables */ |
| 444 | static bool no_line_directive; /* ignore #line directives */ | 444 | static bool no_line_directive; /* ignore #line directives (undocumented) */ |
| 445 | static bool update; /* -u: update tags */ | 445 | static bool update; /* -u: update tags */ |
| 446 | static bool vgrind_style; /* -v: create vgrind style index output */ | 446 | static bool vgrind_style; /* -v: create vgrind style index output */ |
| 447 | static bool no_warnings; /* -w: suppress warnings */ | 447 | static bool no_warnings; /* -w: suppress warnings */ |
| @@ -1254,8 +1254,8 @@ main (argc, argv) | |||
| 1254 | 1254 | ||
| 1255 | if (update) | 1255 | if (update) |
| 1256 | { | 1256 | { |
| 1257 | char cmd[BUFSIZ]; | 1257 | char cmd[2*BUFSIZ+10]; |
| 1258 | sprintf (cmd, "sort -o %s %s", tagfile, tagfile); | 1258 | sprintf (cmd, "sort -o %.*s %.*s", BUFSIZ, tagfile, BUFSIZ, tagfile); |
| 1259 | exit (system (cmd)); | 1259 | exit (system (cmd)); |
| 1260 | } | 1260 | } |
| 1261 | return GOOD; | 1261 | return GOOD; |