delorie.com/archives/browse.cgi | search |
From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Can I query the WWW from a DJGPP program? |
Organization: | Pin Eight Software http://pineight.8m.com/ |
Message-ID: | <ss3b0t06r8qo040vkgdb6skgf1mi5mkdkn@4ax.com> |
References: | <8tu6jd$7o9$1 AT news DOT stortek DOT com> <9ld50t0bdc1j4447j7jc73k76u0pq3dg8g AT 4ax DOT com> <qbFM5.9131$mv2 DOT 29116 AT news2-win DOT server DOT ntlworld DOT com> <7ot60too6v9k256nb2854jkq9mp62igco1 AT 4ax DOT com> <fiu60t0da045komjsr7g97covls5jhpjf4 AT 4ax DOT com> <9003-Sat04Nov2000083635+0200-eliz AT is DOT elta DOT co DOT il> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
Lines: | 28 |
X-Trace: | /KHlxMaAODGqRDV8O9k57cbtS3Geu2/RkxgTZhJxtlsA+FzBxkyuiBSdiq3c+8uGWnlBHf3gyPzi!F2suNxCZHLcdZM/oIqt25zyEMgORRGMbFoAARZPYXwHbmDfCOEKg+c9NPIpFya8TOuaa7x8OALEh!znXYJw== |
X-Complaints-To: | abuse AT gte DOT net |
X-Abuse-Info: | Please be sure to forward a copy of ALL headers |
X-Abuse-Info: | Otherwise we will be unable to process your complaint properly |
NNTP-Posting-Date: | Sun, 05 Nov 2000 16:54:33 GMT |
Distribution: | world |
Date: | Sun, 05 Nov 2000 16:54:33 GMT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Sat, 04 Nov 2000 08:36:35 +0200, "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote: >> From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> >> > return system("lynx -source foo.html > temp.tmp"); > >And that cmdline[] variable seems redundant, since you don't use the >results of sprintf... While we're at it, I'll fix three more problems I saw: int pull_html(const char *url) { // I was tired when I wrote the original function. char cmdline[256]; // adds redirection and removes buffer overflow sprintf(cmdline, "lynx -source %.224s > temp.tmp", url); // oops! return system(cmdline); } -- <O ( \ GNOME vs. KDE: the game! X http://pineight.8m.com/nes.htm This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |