Ignore:
Timestamp:
Jun 16, 2008, 2:09:27 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
b73d28
Parents:
0779a9
Message:

BUGFIX: If other databases could not be loaded, no error was produced, resulting in strange behaviour of the fragmentation routine.

Now an error message is produced, though we still continue. The problem was the switch in handling const char * and a huge mess in LoadPeriodenTafel() with strncat and strncpy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/moleculelist.cpp

    r0779a9 r1f9f1b  
    240240    *out << endl;
    241241    // prepare output of config file
    242     sprintf(FragmentName, "%s/%s%s.conf", configuration->configpath, FRAGMENTPREFIX, FragmentNumber);
     242    sprintf(FragmentName, "%s/%s%s.conf", PathBackup, FRAGMENTPREFIX, FragmentNumber);
    243243    outputFragment.open(FragmentName, ios::out);
    244     strcpy(PathBackup, configuration->configpath);
    245     sprintf(FragmentName, "%s/%s%s/", configuration->configpath, FRAGMENTPREFIX, FragmentNumber);
     244    //strcpy(PathBackup, configuration->configpath);
     245    sprintf(FragmentName, "%s/%s%s/", PathBackup, FRAGMENTPREFIX, FragmentNumber);
    246246   
    247247    // center on edge
Note: See TracChangeset for help on using the changeset viewer.