Permalink
Browse files

Merge pull request #1792 from redstar/overrun

Fix a buffer overrun on Linux/PPC64.
  • Loading branch information...
WalterBright committed Mar 24, 2013
2 parents 618d827 + f0f6fa0 commit cfec6fbcc480f3f7c23aa0a5d0bc105e49450a39
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/expression.c
View
@@ -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++)

0 comments on commit cfec6fb

Please sign in to comment.