CVS: setedit/sdg txhgen.cc,1.9,1.10
Brought to you by:
set
From: Salvador E. T. <se...@us...> - 2009-02-26 17:35:25
|
Update of /cvsroot/setedit/setedit/sdg In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22920/sdg Modified Files: txhgen.cc Log Message: * Modified: [loadshl.h loadshl.cc pathtool.cc debug.cc] New gcc versions are much more strict about the use of string constants. * Added: [txhgen.cc] Safe abort suggested by gcc 4.3. Index: txhgen.cc =================================================================== RCS file: /cvsroot/setedit/setedit/sdg/txhgen.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** txhgen.cc 25 Feb 2009 16:11:31 -0000 1.9 --- txhgen.cc 26 Feb 2009 17:35:18 -0000 1.10 *************** *** 814,817 **** --- 814,819 ---- return 0; + if (num<0 || num>MAX_DEFS) + abort(); if (Used[num]) { |