1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Update wcspbrk(3) to current coding conventions.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-09-24 21:19:29 +02:00
parent b4c7a6aa4a
commit 7911b5c66c

View file

@ -26,8 +26,8 @@
extern "C" wchar_t* wcspbrk(const wchar_t* str, const wchar_t* accept)
{
size_t rejectlen = wcscspn(str, accept);
if ( !str[rejectlen] )
size_t reject_length = wcscspn(str, accept);
if ( !str[reject_length] )
return NULL;
return (wchar_t*) str + rejectlen;
return (wchar_t*) str + reject_length;
}