Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/xmms2/files: xmms2-0.8-memset.patch
Date: Fri, 22 Nov 2013 13:10:55
Message-Id: 20131122131047.BF4602004B@flycatcher.gentoo.org
1 slyfox 13/11/22 13:10:47
2
3 Added: xmms2-0.8-memset.patch
4 Log:
5 Fix build failure in stable 0.8-r1 (backported cython tweak). Thanks to Yury Gavrilovich. Pull missing 'memset()' declaration on new glibc.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
8
9 Revision Changes Path
10 1.1 media-sound/xmms2/files/xmms2-0.8-memset.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/files/xmms2-0.8-memset.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/xmms2/files/xmms2-0.8-memset.patch?rev=1.1&content-type=text/plain
14
15 Index: xmms2-0.8-memset.patch
16 ===================================================================
17 commit 00f4736bbb8ebc88a08e24e98d384b43d5afbbe4
18 Author: Raphaël Bois <virtualdust@×××××.com>
19 Date: Sun Feb 12 16:39:46 2012 +0100
20
21 OTHER: fix erroneous sizeof usage
22
23 diff --git a/src/plugins/daap/daap_md5.c b/src/plugins/daap/daap_md5.c
24 index d4d8d74..69c84a5 100644
25 --- a/src/plugins/daap/daap_md5.c
26 +++ b/src/plugins/daap/daap_md5.c
27 @@ -191,7 +191,7 @@ OpenDaap_MD5Final (MD5_CTX *ctx,
28 MD5Transform (ctx->buf, (guint32 *) ctx->in, ctx->version);
29 byteReverse ((unsigned char *) ctx->buf, 4);
30 memcpy (digest, ctx->buf, 16);
31 - memset (ctx, 0, sizeof (ctx)); /* In case it's sensitive */
32 + memset (ctx, 0, sizeof (*ctx)); /* In case it's sensitive */
33
34 return;
35 }