Skip to content

Commit 98997e7

Browse files
author
kalibera
committed
Avoid possible string truncation (and a compiler warning about it).
git-svn-id: https://svn.r-project.org/R/trunk@88350 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f9dedbc commit 98997e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/library/tools/src/gramLatex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ struct ParseState {
210210

211211
static bool busy = false;
212212
static ParseState parseState;
213-
static char ParseErrorMsg[PARSE_ERROR_SIZE];
213+
static char ParseErrorMsg[PARSE_ERROR_SIZE + 64];
214214

215215
#define PRESERVE_SV(x) R_PreserveInMSet((x), parseState.mset)
216216
#define RELEASE_SV(x) R_ReleaseFromMSet((x), parseState.mset)

src/library/tools/src/gramLatex.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ struct ParseState {
142142

143143
static bool busy = false;
144144
static ParseState parseState;
145-
static char ParseErrorMsg[PARSE_ERROR_SIZE];
145+
static char ParseErrorMsg[PARSE_ERROR_SIZE + 64];
146146

147147
#define PRESERVE_SV(x) R_PreserveInMSet((x), parseState.mset)
148148
#define RELEASE_SV(x) R_ReleaseFromMSet((x), parseState.mset)

0 commit comments

Comments
 (0)