Hello,

problem seems to be to get the size of a non-existent string.

following hotfix solves the symptom, as far as I can test.

---------------------------------------------------------------------------
--- slrn-1.0.0~pre18/src/misc.c 2009-12-02 16:44:32.000000000 +0100
+++ slrn-1.0.0~pre18-X/src/misc.c       2011-07-24 20:54:50.451442016 +0200
@@ -1568,9 +1568,9 @@
 
    slrn_push_suspension (0);
    
-   prompt_len = strlen (prompt);
+   prompt_len = prompt ? strlen (prompt) : 0;
    ubuf = slrn_safe_malloc (prompt_len + len + 1);
-   strcpy (ubuf, prompt);
+   if(prompt) strcpy (ubuf, prompt);
    strncpy (ubuf + prompt_len, buf, len);
    
    len += prompt_len;
---------------------------------------------------------------------------

still totaly unclear why it only happens if konsole with slrn is
startet from the kde-menu.

        MfG
        bmg

-- 
„Des is völlig wurscht, was heut beschlos- | M G Berberich
 sen wird: I bin sowieso dagegn!“          | berbe...@fmi.uni-passau.de
(SPD-Stadtrat Kurt Schindler; Regensburg)  | www.fmi.uni-passau.de/~berberic



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to