delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/29/14:14:06

From: stuerzl AT cs DOT unc DOT edu (Wolfgang Stuerzlinger)
Subject: Re: Problem with getenv("HOME")/sprintf
29 Oct 1997 14:14:06 -0800 :
Message-ID: <Pine.HPP.3.96.971029101159.5690B-100000.cygnus.gnu-win32@catfish.cs.unc.edu>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

As quite a few people pointed out, getenv is not the culprit.
sprintf(x,"%s",NULL) puts the string "(null)" into the destination
string and is the routine to "blame" for the behaviour.

I am sorry for the confusion, I was analyzing a problem with pd-software
from somebody else and tracked the problem down to the above cause.

Wolfgang

P.S.: Yesterday was really a very bad day for me - at least 5 different
things going on at the same time and 3 things (including this one) went
wrong. I hope this doesn't repeat often ;-}
--
Wolfgang Stuerzlinger
Dept. of Computer Science, UNC, Chapel Hill, NC 27599-3175
stuerzl AT cs DOT unc DOT edu          http://www.cs.unc.edu/~stuerzl

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019