[PD-dev] segv when HOME not set

Miller Puckette mpuckett at man104-1.ucsd.edu
Tue Sep 16 02:19:13 CEST 2003


Thanks...  I'll fix it.  I presume just "." is the most natural
fallback when there's no $HOME...

cheers
Miller

On Mon, Sep 15, 2003 at 12:19:10PM +0200, Tom Schouten wrote:
> 
> i tried running pd 0.37 on a stripped down linux system yesterday, and it
> crashed when the HOME environment variable was not set. getenv("HOME")
> returns NULL in s_path.c, function int sys_rcfile(void), which will cause
> the line
> 
> strncat(fname, getenv("HOME"), MAXPDSTRING-10);
> 
> (number 308) to die.
> 
> sorry if this is already fixed, i'm running 0.37-test8
> 
> tom
> 
> 
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-dev




More information about the Pd-dev mailing list