Hi Tim,
I have now directly tested that the buffer length change fixes the
problem on the Mac (indeed it does). Modifying source on a Mac was not
as easy as one might have hoped. I have included the winning build
script after this email.
Thanks again for Xcircuit, you are a star.
- Charlie
export LDFLAGS=-L/sw/lib
export CPPFLAGS=-I/sw/include
export PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
export XAPPLRESDIR=/sw/etc/app-defaults/
export CCACHE_DIR=/sw/var/ccache
export
PATH=/sw/var/lib/fink/path-prefix-10.6:/sw/bin:/sw/sbin:/bin:/usr/bin:/s
export PWD=/sw/src/fink.build/xcircuit-3.7.35-1/xcircuit-3.7.35
export VERSIONER_PERL_PREFER_32_BIT=yes
export SHLVL=3
export CFLAGS=-I/usr/X11R6/include -fno-common
export MACOSX_DEPLOYMENT_TARGET=10.6
make distclean
./configure --prefix=/sw --with-gnu-ld \
--x-libraries=/usr/X11R6/lib --x-includes=/usr/X11R6/include \
--with-ngspice=/sw --enable-optimize \
--with-tcl=/sw/lib \
--with-tk=/sw/lib \
--with-tclincls=/sw/include \
--with-tkincls=/sw/include \
--with-tcllibs=/sw/lib \
--with-tklibs=/sw/lib
make
make install
On 3/28/12 5:11 PM, Tim Edwards wrote:
Hello Charles,
It looks like the "sprintf" call in "menucalls.c". Your "cstr[5]" is
sprintf'd to as "%5d", and this results in six actual characters
being written (including the null). But I'm guessing you know that.
And although you don't say so, I'm guessing that changing cstr[5]
to cstr[6] fixes it, which change I have already made to the git
repository.
Thanks for tracking it down!
---Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
--
Charlie Repetti
Senior Engineer
Sandpiper Associates, Inc.
415-515-5985
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev