From: Alan W. I. <ir...@be...> - 2001-03-03 20:37:36
|
On Sat, 3 Mar 2001, Rafael Laboissiere wrote: > Update of /cvsroot/plplot/plplot/examples/c > In directory usw-pr-cvs1:/tmp/cvs-serv22235 > > Modified Files: > x16c.c > Log Message: > [You, Alan, lousy C programmer :-)] I am glad you said that with a smile, but of course you are absolutely right. Fortunately, that situation is improving. > > This demo was segfaulting when giving command line options -nx and -ny with > values higher than the default ones. This was being caused by this local > variable initialization: > > char zdefined[nx][ny] > > which, of course, does not honor the option values. zdefined is now > properly malloc'ed after plParseOpts has been called. Thanks for cleaning up the mess. Alan |