Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux

      Description

      in file.cpp line 83
      //////////////
      std::string File::convertBackSlashes(const std::string& src) {
      std::string::size_type pos = src.find('
      ');
      if (pos == std::string::npos)

      { return src; }

      std::string mod(src);
      while(pos != std::string::npos)

      { mod[pos] = '/'; pos = src.find('\\'); }

      return mod;
      }
      //////////////
      resolution should be "pos = mod.find("
      ");"
      ////////////
      if the string has more than one "/" src.find return always the first "/" character occurence and the loop "become" infinite

        Activity

        Hide
        Curt Arnold added a comment -

        Added test case, fixed in revision 312892.

        Show
        Curt Arnold added a comment - Added test case, fixed in revision 312892.

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Alban Seurat
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development