Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
0d9e472b
Commit
0d9e472b
authored
Mar 22, 2016
by
filatov
Browse files
fix lastpathelement win32 behaviour
parent
f7ee984c
Changes
1
Show whitespace changes
Inline
Side-by-side
tools/itscertgen/cshared/cstr.c
View file @
0d9e472b
...
...
@@ -239,8 +239,10 @@ char * cstraload(char ** p, const pchar_t * path)
const
pchar_t
*
cstrlastpathelement
(
const
pchar_t
*
str
)
{
const
pchar_t
*
p
=
pchar_rchr
(
str
,
'/'
);
const
pchar_t
*
p2
=
pchar_rchr
(
str
,
'/'
);
#ifdef WIN32
const
pchar_t
*
p2
=
pchar_rchr
(
str
,
'\\'
);
if
(
p
<
p2
)
p
=
p2
;
#endif
else
if
(
p
==
NULL
)
p
=
str
;
return
p
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment