void-packages/srcpkgs/rix/patches/overflow.patch

12 lines
318 B
Diff

--- a/rixc.c
+++ b/rixc.c
@@ -1563,7 +1563,7 @@
Object *objectfloat(float f)
{
compilerDebugPrintf("objectfloat(%f)\n", f);
- char buffer[128];
+ char buffer[BUFFLEN];
snprintf(buffer, BUFFLEN, "%f", f);
Object *result = CreateObject(0, 0, 0, Expression, "float");
addCode(result, buffer);