Changeset 10357:1cafe91241f9 in orange


Ignore:
Timestamp:
02/24/12 11:34:22 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Message:

Fixed an edge case for opening datasets from default location.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orange/lib_kernel.cpp

    r10220 r10357  
    21572157    for(pe = pi; *pe && *pe != sep; pe++); 
    21582158    const int plen = pe-pi; 
    2159      char *npath = strncpy(new char[plen+flen+2], pi, pe-pi); 
    2160     if (!plen || (pe[plen] != pathsep)) { 
     2159    char *npath = strncpy(new char[plen+flen+2], pi, pe-pi); 
     2160    if (!plen || (pi[plen] != pathsep)) { 
    21612161      npath[plen] = pathsep; 
    21622162      strcpy(npath+plen+1, filename); 
Note: See TracChangeset for help on using the changeset viewer.