void-packages/srcpkgs/rix/patches/overflow.patch
2017-05-08 20:06:58 +02:00

11 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);