Show
Ignore:
Timestamp:
03/27/08 12:40:50 (8 months ago)
Author:
peter
Message:

source/service.cpp
source/punch_fits.cpp
source/init_coreload.cpp
source/grains_mie.cpp
source/assert_results.cpp
source/parse_punch.cpp
source/optimize_phymir.cpp
source/version.h
source/parse_commands.cpp
source/prt_final.cpp
source/grid_do.cpp
source/parse_print.cpp
source/cddrive.cpp
source/prt_comment.cpp
tsuite/programs/mpi/mpi.cpp

  • Bug-fix for PR59 - cdVersion, cdDate could cause segfault.
  • Start preparing for the change of the release numbering scheme for the next release.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/source/cddrive.cpp

    r1878 r1891  
    352352 * 
    353353 * cdVersion - puts version number of code into string  
    354  * incoming string must have at least 8 char and will become null 
     354 * incoming string must have sufficient length and will become null 
    355355 * terminated string 
    356356 * 
    357357 ************************************************************************/ 
    358358 
    359 void cdVersion(char chString[] )  
    360 { 
    361         DEBUG_ENTRY( "cdVersion()" ); 
    362  
    363         if( !lgcdInitCalled ) 
    364         { 
    365                 printf(" cdInit was not called first - this must be the first call.\n"); 
    366                 cdEXIT(EXIT_FAILURE); 
    367         } 
    368  
    369         /* version was set by cdInit */ 
    370         strcpy( chString , version.chVersion ); 
     359void cdVersion(char chString[]) 
     360{ 
     361        strcpy( chString , version::Inst().chVersion ); 
    371362        return; 
    372363} 
     
    381372 
    382373/* cdDate - puts date of code into string  */ 
    383 void cdDate(char chString[] )  
    384 { 
    385         /* date was set by cdInit */ 
    386         strcpy( chString , version.chDate ); 
     374void cdDate(char chString[]) 
     375{ 
     376        strcpy( chString , version::Inst().chDate ); 
    387377        return; 
    388378}