Package: gbemol
Version: 0.3.1-1
Severity: important
Tags: patch
Usertags: implicit-pointer-conversion

Our automated buildd log filter[1] detected a problem that is likely to
cause your package to segfault on architectures where the size of a
pointer is greater than the size of an integer, such as ia64 and amd64.

  Function `strdup' implicitly converted to pointer at libmpdclient.c:289

This is often due to a missing function prototype definition.
For more information, see [2].

[1] http://people.debian.org/~dannf/check-implicit-pointer-functions
[2] http://wiki.debian.org/ImplicitPointerConversions

Defining _GNU_SOURCE makes the strdup() prototype in
/usr/include/string.h available.

--- gbemol-0.3.1.orig/src/libmpdclient.c        2007-11-29 17:14:14.000000000 
-0700
+++ gbemol-0.3.1/src/libmpdclient.c     2008-03-04 18:51:37.000000000 -0700
@@ -30,6 +30,7 @@
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#define _GNU_SOURCE
 #include "libmpdclient.h"
 
 #include <errno.h>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to