Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7200

Re: reading from a temp file

From Ruben Safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject Re: reading from a temp file
Date 2011-06-28 12:32 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <iuchk3$pjj$1@reader1.panix.com> (permalink)
References <iuc3me$nam$2@reader1.panix.com> <96ti78FuacU2@mid.individual.net> <96tmp9FvidU1@mid.uni-berlin.de>

Show all headers | View raw


On Tue, 28 Jun 2011 09:55:53 +0000, Jens Thoms Toerring wrote:


> Also note that if the 'EDITOR' environment variable should be set you're
> now trying to write into memory belonging to what- ever returned the
> environment string. Definitely not a good idea - while getenv()
> unfortunately returns a 'char *' and not a 'char const *' (which would
> make this mistake impossible) it's not meant as allowing you to modify
> that string (or, worse, write past its trailing '\0').

what are you say?  That I can overwrite the environmental variable?

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

reading from a temp file Ruben Safir <ruben@mrbrklyn.com> - 2011-06-28 08:34 +0000
  Re: reading from a temp file Ian Collins <ian-news@hotmail.com> - 2011-06-28 20:37 +1200
    Re: reading from a temp file jt@toerring.de (Jens Thoms Toerring) - 2011-06-28 09:55 +0000
      Re: reading from a temp file Ruben Safir <ruben@mrbrklyn.com> - 2011-06-28 12:32 +0000
        Re: reading from a temp file jt@toerring.de (Jens Thoms Toerring) - 2011-06-28 13:54 +0000
          Re: reading from a temp file Ruben Safir <mrbrklyn@panix.com> - 2011-07-01 05:14 +0000
        Re: reading from a temp file Michael DOUBEZ <michael.doubez@free.fr> - 2011-07-01 00:54 -0700
    Re: reading from a temp file Michael DOUBEZ <michael.doubez@free.fr> - 2011-07-01 01:20 -0700
      Re: reading from a temp file Ruben Safir <mrbrklyn@panix.com> - 2011-07-02 00:47 +0000

csiph-web