-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels