Re: [Plib-devel] [PATCH] ssg/ssgLoadAC.cxx: fix potential crash; accept DOS line endings
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2003-07-03 03:34:18
|
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. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |