Skip to content

Launching without filepath #369

@TimMangan

Description

@TimMangan

The code in launchff++.cpp is flawed if the command is not issued with a full file path.

For example: lauchff.exe C:\path_to_some_file

The code grabs argv[0] ( "launchff.exe") , passes it to a function to determine the directory, and appends "\freefem++.exe". This works fine as long as there is a backslash in argv[0], but fails in this case, producing a path of "launchff.exe\freefem++.exe".

The function to extract the directory should return "" if there is not a backslash, not the entire string. Secondly, the main function should append the "\" only if the returned string was not of length 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions