Article View: news.software.readers
Article #46966Re: Slrn References problem
From: John E. Davis
Date: Mon, 01 Mar 1999 00:00
Date: Mon, 01 Mar 1999 00:00
17 lines
1998 bytes
1998 bytes
On 28 Feb 1999 20:46:44 GMT, Thomas Schultz <tststs@gmx.de> wrote: >to 2048 or such, but I don't know enough about C to tell if there is a >solution that does not make it necessary to set a fixed limit at all >(which would IMO be even better). The solution is to use the appropriate combinations of malloc, realloc, and free. An example of this is in the function `server_read_and_malloc' in slrn/src/xover.c. Ultimately, I am going to replace all the code that uses the stdio functions such as fgets by something else that allocates the correct amount of memory. If you have the jed editor source, look at jed/src/vfile.c to see what I mean. --John
Technical Details
Message-ID:
<slrn7dk5a1.kr4.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn7d7k8q.oth.acampbell@achc.demon.co.uk> <7b0s4c$sqa$1@jupiter.rhein-neckar.de> <1dnqxnz.lux24ay326nlN@roxboro0-0003.dyn.interpath.net> <slrn7dbe06.63.tststs@tststs.ddns.org> <1dnslmv.289xjzpgjbalN@roxboro0-0034.dyn.interpath.net> <slrn7de3og.74.tststs@tststs.ddns.org> <1dnulq2.1so4x54afxulxN@roxboro0-0006.dyn.interpath.net> <nrls7dg6ua.6bv.fschueller@fschueller.ddns.org> <1dnw18p.1y5wf4ic9pguN@roxboro0-0028.dyn.interpath.net> <slrn7dgot6.ho.tststs@tststs.ddns.org> <nrls7dim40.c81.fschueller@fschueller.ddns.org> <slrn7djapk.10s.tststs@tststs.ddns.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn7dk5a1.kr4.davis@aluche.mit.edu> Subject: Re: Slrn References problem Date: Mon, 01 Mar 1999 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn7d7k8q.oth.acampbell@achc.demon.co.uk> <7b0s4c$sqa$1@jupiter.rhein-neckar.de> <1dnqxnz.lux24ay326nlN@roxboro0-0003.dyn.interpath.net> <slrn7dbe06.63.tststs@tststs.ddns.org> <1dnslmv.289xjzpgjbalN@roxboro0-0034.dyn.interpath.net> <slrn7de3og.74.tststs@tststs.ddns.org> <1dnulq2.1so4x54afxulxN@roxboro0-0006.dyn.interpath.net> <nrls7dg6ua.6bv.fschueller@fschueller.ddns.org> <1dnw18p.1y5wf4ic9pguN@roxboro0-0028.dyn.interpath.net> <slrn7dgot6.ho.tststs@tststs.ddns.org> <nrls7dim40.c81.fschueller@fschueller.ddns.org> <slrn7djapk.10s.tststs@tststs.ddns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 449748230 X-Complaints-To: usenet@eecs-usenet-02.mit.edu X-Trace: eecs-usenet-02.mit.edu 920261954 16200 18.75.2.45 (1 Mar 1999 04:19:14 GMT) Organization: Center for Space Research User-Agent: slrn/0.9.5.4 (UNIX) Reply-To: davis@space.mit.edu NNTP-Posting-Date: 1 Mar 1999 04:19:14 GMT Newsgroups: news.software.readers