Re: [Plib-devel] [PATCH] ssg/ssgLoadAC.cxx: fix potential crash; accept DOS line endings
Brought to you by:
sjbaker
From: Paul B. <pb...@ax...> - 2003-07-05 19:40:43
|
On my system ssgLoadAC.cxx is broken since pulling the latest CVS. It works in my own test programs, but Tuxkart 0.2.0/CVS, and tux_aqfh-1.0.14 fail with the following error: FATAL: ac_to_gl: Unrecognised token ' ' I have not yet figured out the exact cause. I'm compiling under Linux (Mardrake 8.1): gcc version 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk) Mesa 3.4.2 On Wednesday 02 July 2003 10:36 pm, Steve Baker wrote: > Melchior FRANZ wrote: > > 1. add a missing list stopper to avoid potential crashes > > > > 2. most of ssgLoadAC.cxx is able to deal with AC files with > > DOS line endings, only one line breaks it and leads to > > "ac_to_gl: Unrecognised token ''". > > do_data():360 discards the expected '\n', which may > > actually be a '\r' with the real '\n' coming next and > > screwing things up. > > '.ac' files don't have DOS line endings - even the ones written > by the Windoze version of AC3D. > > However, the patch isn't unreasonable - go for it. > ..snip... -- Paul Boese pb...@ax... |