Skip to content

Commit

Permalink
Merge pull request #1792 from redstar/overrun
Browse files Browse the repository at this point in the history
Fix a buffer overrun on Linux/PPC64.
  • Loading branch information
WalterBright committed Mar 24, 2013
2 parents 618d827 + f0f6fa0 commit cfec6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/expression.c
Expand Up @@ -2669,7 +2669,7 @@ void realToMangleBuffer(OutBuffer *buf, real_t value)
buf->writestring("NAN"); // no -NAN bugs
else
{
char buffer[32];
char buffer[36];
int n = ld_sprint(buffer, 'A', value);
assert(n > 0 && n < sizeof(buffer));
for (int i = 0; i < n; i++)
Expand Down

0 comments on commit cfec6fb

Please sign in to comment.