MINGW-packages/mingw-w64-libgoom2/004-use-memset-instead-of-bzero.patch
2022-10-03 09:55:32 +05:30

20 lines
954 B
Diff

diff --git a/src/goom_core.c b/src/goom_core.c
index d53a96b..37de57d 100644
--- a/src/goom_core.c
+++ b/src/goom_core.c
@@ -40,11 +40,11 @@ static void update_message (PluginInfo *goomInfo, char *message);
static void init_buffers(PluginInfo *goomInfo, int buffsize)
{
goomInfo->pixel = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->pixel, buffsize * sizeof (guint32) + 128);
+ memset(goomInfo->pixel, 0, buffsize * sizeof (guint32) + 128);
goomInfo->back = (guint32 *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->back, buffsize * sizeof (guint32) + 128);
+ memset(goomInfo->back, 0, buffsize * sizeof (guint32) + 128);
goomInfo->conv = (Pixel *) malloc (buffsize * sizeof (guint32) + 128);
- bzero (goomInfo->conv, buffsize * sizeof (guint32) + 128);
+ memset(goomInfo->conv, 0, buffsize * sizeof (guint32) + 128);
goomInfo->outputBuf = goomInfo->conv;