[Plib-cvs] plib/src/ssg ssgLoadMDL.cxx,1.44,1.45
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2003-06-02 21:03:54
|
Update of /cvsroot/plib/plib/src/ssg In directory sc8-pr-cvs1:/tmp/cvs-serv21861 Modified Files: ssgLoadMDL.cxx Log Message: Fix by Melchior FRANZ: A pointer to a automatic variable was stored and used later on. Index: ssgLoadMDL.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/ssg/ssgLoadMDL.cxx,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- ssgLoadMDL.cxx 4 Jan 2003 02:55:55 -0000 1.44 +++ ssgLoadMDL.cxx 2 Jun 2003 21:03:50 -0000 1.45 @@ -1355,7 +1355,7 @@ dy = ulEndianReadLittle16(fp); char tex_name[14]; fread(tex_name, 1, 14, fp); - char tex_filename[14]; + static char tex_filename[14]; int j = 0; for(int i = 0; i < 14; i++) { @@ -1375,7 +1375,7 @@ unsigned short length, idx; unsigned char flags, chksum; unsigned int color; - char tex_filename[128]; + static char tex_filename[128]; length = ulEndianReadLittle16(fp); idx = ulEndianReadLittle16(fp); fread(&flags, 1, 1, fp); |