mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 23:34:34 +01:00
Small portability fix for strnlen
This commit is contained in:
parent
36652d0053
commit
c4cb7a9b43
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ ConfigValuesFactory::unpack(const void * _src, Uint32 len){
|
|||
break;
|
||||
case ConfigValues::StringType:{
|
||||
Uint32 s_len = ntohl(* (const Uint32 *)src); src += 4;
|
||||
size_t s_len2 = strnlen((const char*)src, s_len);
|
||||
size_t s_len2 = strlen((const char*)src);
|
||||
if(s_len2 + 1 != s_len){
|
||||
DEBUG abort();
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue