Fix maxlen in SetEntPropString not being initialized (bug 6391).
This var is only used when setting a direct string, rather than a string_t. Some flawed logic was causing it to only be set if the sendprop didn't have a proxy function (although all strings should; that's how we detect whether it's a string_t or not). The var only needs to be set if it's not a string_t, but does not hurt anything if it is.
This commit is contained in:
parent
7d153cf9f9
commit
f589298879
@ -2109,10 +2109,10 @@ static cell_t SetEntPropString(IPluginContext *pContext, const cell_t *params)
|
|||||||
bIsStringIndex = true;
|
bIsStringIndex = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
// Only used if not string index.
|
||||||
maxlen = DT_MAX_STRING_BUFFERSIZE;
|
maxlen = DT_MAX_STRING_BUFFERSIZE;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user