1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 05:43:33 +00:00

Fixed compiler warning

This commit is contained in:
Bryan Roe
2019-03-04 18:22:51 -08:00
parent a7544b6b7a
commit c8c366ff5a
4 changed files with 4 additions and 4 deletions

View File

@@ -120,7 +120,7 @@ char* crashMemory = ILib_POSIX_InstallCrashHandler(argv[0]);
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integratedJavaScriptLen == 0)
{
integratedJavaScript = ILibString_Copy(argv[2], -1);
integratedJavaScriptLen = strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
integratedJavaScriptLen = (int)strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
}
if (argc > 1 && strcasecmp(argv[1], "-info") == 0)

View File

@@ -3041,7 +3041,7 @@ void MeshServer_ConnectEx(MeshAgentHostContainer *agent)
}
strcpy_s(agent->serveruri, sizeof(agent->serveruri), "wss://meshcentral.com:443/agent.ashx");
strcpy_s(serverUrl, serverUrlLen, "wss://meshcentral.com:443/agent.ashx");
serverUrlLen = strnlen_s(serverUrl, serverUrlLen);
serverUrlLen = (int)strnlen_s(serverUrl, serverUrlLen);
}
#ifndef MICROSTACK_NOTLS

View File

@@ -946,7 +946,7 @@ int main(int argc, char* argv[])
if (argc > 2 && strcmp(argv[1], "-exec") == 0 && integragedJavaScriptLen == 0)
{
integratedJavaScript = ILibString_Copy(argv[2], -1);
integragedJavaScriptLen = strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
integragedJavaScriptLen = (int)strnlen_s(integratedJavaScript, sizeof(ILibScratchPad));
}

View File

@@ -556,7 +556,7 @@ void ILibDuktape_EventEmitter_eventNames_ex(ILibHashtable sender, void *Key1, ch
if (ILibLinkedList_GetCount(Data) > 0)
{
duk_push_lstring(emitter->ctx, Key2, Key2Len);
duk_put_prop_index(emitter->ctx, -2, duk_get_length(emitter->ctx, -2));
duk_put_prop_index(emitter->ctx, -2, (duk_uarridx_t)duk_get_length(emitter->ctx, -2));
}
}
}