pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56632: irssi fails to build on Solaris 10



>Number:         56632
>Category:       pkg
>Synopsis:       irssi fails to build on Solaris 10
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 16 19:40:00 +0000 2022
>Originator:     Claes Nästén
>Release:        git 2022-01-01
>Organization:
>Environment:
SunO sun4u sparc SUNW,Sun-Blade-1500
>Description:
Building of irssi fails on Solaris 10 due to missing reference to strndup.
>How-To-Repeat:
Build on Solaris 10
>Fix:
From upstream fix in 58c9aecf86425630f043f554f0d11b625ed88be0

$NetBSD$

--- src/otr/otr.c.orig  2022-01-16 19:26:06.168980995 +0000
+++ src/otr/otr.c
@@ -643,7 +643,7 @@ static enum otr_msg_status enqueue_otr_f
                 * Dup the string with enough space for the NULL byte since we are
                 * about to free it before passing it to the caller.
                 */
-               *full_msg = strndup(opc->full_msg, opc->msg_len + 1);
+               *full_msg = g_strndup(opc->full_msg, opc->msg_len + 1);
                /* Reset everything. */
                free(opc->full_msg);
                opc->full_msg = NULL;



Home | Main Index | Thread Index | Old Index