csound/csound-memset-fix.patch
Pavol Rusnak a53b19828d - updated to version 5.15.0
- drop unused patches
- fix wrong memset and strncat usage ({memset,strncat}-fix.patch)

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=7
2012-01-08 16:13:41 +00:00

14 lines
505 B
Diff

Index: Opcodes/pvsbasic.c
===================================================================
--- Opcodes/pvsbasic.c.orig
+++ Opcodes/pvsbasic.c
@@ -2183,7 +2183,7 @@ int tab2pvs_init(CSOUND *csound, TAB2PVS
csound->AuxAlloc(csound, (N + 2) * sizeof(float), &p->fout->frame);
}
- memset(p->fout->frame.auxp, sizeof(float)*(N+2), 0);
+ memset(p->fout->frame.auxp, 0, sizeof(float)*(N+2));
return OK;
}
else return csound->InitError(csound, Str("t-variable not initialised"));