Re: BUG+FIX - panic in octstr.c

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On Donnerstag, Juni 12, 2003, at 05:24  Uhr, Paul Keogh wrote:

>
> Function is convert() in  gwlib/octstr.c
>
> Offending code is;
>
> ...
>     case 'E':
>         new = octstr_duplicate(va_arg(VALST(args), Octstr *));
>         if (!new)
>             new = octstr_imm("(null)");
> 	octstr_url_encode(new);
> ...
>
> You can't pass an immutable Octstr instance to the octstr_url_encode()
> function.

how about octstr "manipulation" making a copy of the immutable once it 
has to be "modified"?

Andreas Fink
Global Networks Switzerland AG

------------------------------------------------------------------
Tel: +41-61-6666333  Fax: +41-61-6666334   Mobile: +41-79-2457333
Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland
Web: http://www.global-networks.ch/      [email protected]
------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.