Ignore:
Timestamp:
06/18/11 18:12:38 (13 years ago)
Author:
tbretz
Message:
Fixed a bug in UnLibToolize with short filenames.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r11039 r11064  
    10521052        fname = fname.substr(3);
    10531053
    1054     if (pname==".libs")
     1054    if (pname.empty() || pname==".libs")
    10551055        return fname;
    10561056
    1057     const size_t pos = pname.length()-6;
    1058     if (pname.substr(pos)=="/.libs")
    1059         pname = pname.substr(0, pos);
     1057    if (pname.length()>=6)
     1058    {
     1059        const size_t pos = pname.length()-6;
     1060        if (pname.substr(pos)=="/.libs")
     1061            pname = pname.substr(0, pos);
     1062    }
    10601063
    10611064    return pname+'/'+fname;
Note: See TracChangeset for help on using the changeset viewer.