Typecast some strlen return values to the type they are assigned to.

pull/122/head
John Safranek 2018-11-15 11:43:25 -08:00
parent 9e16f6ec71
commit 6d8e55eb8c
1 changed files with 4 additions and 4 deletions

View File

@ -7358,9 +7358,9 @@ void clean_path(char* path)
if (path != NULL) {
/* go through path until no cases are found */
do {
sz = WSTRLEN(path);
int prIdx = 0; /* begin of cut */
int enIdx = 0; /* end of cut */
sz = (long)WSTRLEN(path);
found = 0;
for (i = 1; i < sz; i++) {
@ -7401,7 +7401,7 @@ void clean_path(char* path)
} while (found);
#if defined(WOLFSSL_NUCLEUS) || defined(USE_WINDOWS_API)
sz = WSTRLEN(path);
sz = (long)WSTRLEN(path);
if (path[sz - 1] == ':') {
path[sz] = WS_DELIM;
@ -7411,7 +7411,7 @@ void clean_path(char* path)
/* clean up any multiple drive listed i.e. A:/A: */
{
int i,j;
sz = WSTRLEN(path);
sz = (long)WSTRLEN(path);
for (i = 0, j = 0; i < sz; i++) {
if (path[i] == ':') {
if (j == 0) j = i;
@ -7427,7 +7427,7 @@ void clean_path(char* path)
}
/* remove leading '/' for nucleus. Preserve case of single "/" */
sz = WSTRLEN(path);
sz = (long)WSTRLEN(path);
while (sz > 2 && path[0] == WS_DELIM) {
sz--;
WMEMMOVE(path, path + 1, sz);