Changeset 328544


Ignore:
Timestamp:
May 30, 2008, 10:43:34 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
ae0078
Parents:
9e831e
Message:

LoadPeriodentafel() mixup of cat and cpy orders prevented loading of database with a given path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/periodentafel.cpp

    r9e831e r328544  
    172172 
    173173  // fill elements DB
    174   strncat(filename, path, MAXSTRINGSIZE);
     174  strncpy(filename, path, MAXSTRINGSIZE);
    175175  strncat(filename, "/", MAXSTRINGSIZE-strlen(filename));
    176   strncpy(filename, STANDARDELEMENTSDB, MAXSTRINGSIZE-strlen(filename));
     176  strncat(filename, STANDARDELEMENTSDB, MAXSTRINGSIZE-strlen(filename));
    177177  infile.open(filename);
    178178  if (infile != NULL) {
Note: See TracChangeset for help on using the changeset viewer.