void-packages/srcpkgs/csound/patches/buffersize.patch

39 lines
1.4 KiB
Diff

--- OOps/ugrw1.c 2018-05-10 10:31:20.000000000 +0200
+++ OOps/ugrw1.c 2018-05-13 10:40:15.438512047 +0200
@@ -1057,7 +1057,7 @@
*/
static int32_t sprints(char *outstring, char *fmt, MYFLT **kvals, int32_t numVals)
{
- char tmp[8],cc;
+ char tmp[10],cc;
int32_t j = 0;
int32_t len = 8192;
while (*fmt) {
--- Engine/csound_orc_expressions.c.orig 2018-09-24 19:09:36.956995269 +0200
+++ Engine/csound_orc_expressions.c 2018-09-24 19:11:09.401989759 +0200
@@ -826,10 +826,10 @@
static TREE *create_synthetic_ident(CSOUND *csound, int32 count)
{
- char *label = (char *)csound->Calloc(csound, 20);
+ char *label = (char *)csound->Calloc(csound, 32);
ORCTOKEN *token;
- snprintf(label, 20, "__synthetic_%"PRIi32, count);
+ snprintf(label, 32, "__synthetic_%"PRIi32, count);
if (UNLIKELY(PARSER_DEBUG))
csound->Message(csound, "Creating Synthetic T_IDENT: %s\n", label);
token = make_token(csound, label);
@@ -840,9 +840,9 @@
static TREE *create_synthetic_label(CSOUND *csound, int32 count)
{
- char *label = (char *)csound->Calloc(csound, 20);
+ char *label = (char *)csound->Calloc(csound, 32);
ORCTOKEN *token;
- snprintf(label, 20, "__synthetic_%"PRIi32":", count);
+ snprintf(label, 32, "__synthetic_%"PRIi32":", count);
if (UNLIKELY(PARSER_DEBUG))
csound->Message(csound, "Creating Synthetic label: %s\n", label);
token = make_label(csound, label);