Ticket #386: split_path.diff

File split_path.diff, 0.5 KB (added by rg, 6 years ago)
  • src/library.c

     
    830830        pos_sl = CHARSET_RINDEX(interp, in, slash2, len); 
    831831    pos_dot = CHARSET_RINDEX(interp, in, dot, len); 
    832832 
    833     /* XXX directory parrot-0.4.1 or such */ 
    834     if (pos_dot != -1 && isdigit((unsigned char)((char*)in->strstart)[pos_dot+1])) 
     833    /* ignore dot in directory name */ 
     834    if (pos_dot != -1 && pos_dot < pos_sl) 
    835835        pos_dot = -1; 
    836836 
    837837    ++pos_dot;