Skip to content

Commit

Permalink
increase static buffer sizes for progs global and value strings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Dec 25, 2023
1 parent 04d12c4 commit dfcc9bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quake/pr_edict.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ Returns a string describing *data in a type specific manner
*/
static const char *PR_ValueString (int type, eval_t *val)
{
static char line[512];
static char line[4096];
ddef_t *def;
dfunction_t *f;

Expand Down Expand Up @@ -415,7 +415,7 @@ padded to 20 field width
*/
const char *PR_GlobalString (int ofs)
{
static char line[512];
static char line[4096];
static const int lastchari = Q_COUNTOF(line) - 2;
const char *s;
int i;
Expand Down Expand Up @@ -446,7 +446,7 @@ const char *PR_GlobalString (int ofs)

const char *PR_GlobalStringNoContents (int ofs)
{
static char line[512];
static char line[4096];
static const int lastchari = Q_COUNTOF(line) - 2;
int i;
ddef_t *def;
Expand Down

0 comments on commit dfcc9bf

Please sign in to comment.