Skip to content
Snippets Groups Projects
Commit 7d631507 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix issue in previous commit, caught by GCC warning, reported by Keyop

lastchar() returns a char pointer, not a char.

This fixes issue #751
parent 58754892
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
Pipeline #6391 passed
......@@ -949,7 +949,7 @@ void xfer_cfg()
FIND_ALPHANUMERIC(tp);
}
replace_chars(p, '\\', '/');
if(lastchar(p) == '/')
if(*lastchar(p) == '/')
*lastchar(p) = '\0';
SAFECOPY(tmp_code, getfname(p));
SAFECOPY(tmpdir.path, p);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment