[Plib-devel] Re: [Plib-cvs] plib/src/ssg ssgLoadAC.cxx,1.36,1.37
Brought to you by:
sjbaker
From: steve <sjb...@ai...> - 2005-12-07 01:24:39
|
Bram Stolk wrote: > Update of /cvsroot/plib/plib/src/ssg > In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8823 > > Modified Files: > ssgLoadAC.cxx > Log Message: > Avoid append flag. Fix by Mathias - loader_fd = fopen ( filename, "ra" ) ; + loader_fd = fopen ( filename, "r" ) ; Wooaaahhhhhh. That's not right! The 'a' flag only means 'append' if it's the first character in the mode string. In the second position, it should be ignored. On some systems, an 'a' in the second position means "ASCII" (as opposed to 'b' for binary). I'm sceptical about this patch. |