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

12 lines
319 B
Diff

--- rixc.c.orig
+++ 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);