[Plib-devel] Re: [PATCH] ssg/ssgLoadAC.cxx: fix potential crash; accept DOS line endings
Brought to you by:
sjbaker
From: Melchior F. <a86...@un...> - 2003-07-05 07:27:02
|
* Frederic Bouvier -- Friday 04 July 2003 23:07: > This patch produces this on MSVC : [...] > ssgLoadAC.cxx(352) : error C2466: cannot allocate an array of constant [...] > I propose the patch below. It avoids a strcpy at the expense of two bytes : That's what I had before, but I dismissed it because of the wasted two bytes. I didn't know how much memory this would make in a whole ssg tree. Apart from that it's of course better (and faster). If the two bytes are a problem, you can still revert and apply the patch that I had sent first (-> start of the thread). m. |