BUG + Fix
M G Berberich <[email protected]> Fri, 6 Apr 2012 11:27:14 +0200
| Newsgroups | gmane.network.slrn.user |
|---|---|
| Message-ID | <20120406092713.GA4641@invalid> |
Hello,
sometimes rline_update in misc.c gets called with prompt = 0 (if slrn
is startet from konsole via the profile-mechanism) and than slrn
segfaults.
A simple fix for this problem is:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- slrn-svn/src/misc.c 2012-04-06 11:12:52.822229765 +0200 +++
slrn-1.0.0~pre18/src/misc.c 2012-04-06 11:10:09.039032047 +0200 @@
-1566,6 +1566,8 @@
(void) client_data;
(void) rli;
+ if (!prompt) prompt = "";
+
slrn_push_suspension (0);
prompt_len = strlen (prompt);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
btw: I'm not on the mailinglist.
MfG
bmg
--
„Des is völlig wurscht, was heut beschlos- | M G Berberich
sen wird: I bin sowieso dagegn!“ | [email protected]
(SPD-Stadtrat Kurt Schindler; Regensburg) | www.fmi.uni-passau.de/~berberic
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2