mirror of https://github.com/wolfSSL/wolfssh.git
cast return value of wstrlen
parent
55a763c360
commit
a268085b0b
|
@ -48,7 +48,7 @@ static int commandCb(const char* in, char* out, int outSz)
|
||||||
|
|
||||||
/* get command input */
|
/* get command input */
|
||||||
if (out) {
|
if (out) {
|
||||||
int sz = WSTRLEN(cmds[commandIdx]);
|
int sz = (int)WSTRLEN(cmds[commandIdx]);
|
||||||
if (outSz < sz) {
|
if (outSz < sz) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue