mirror of
https://github.com/samba-team/samba.git
synced 2025-11-18 00:23:50 +03:00
Fix C++ warnings
This commit is contained in:
committed by
Jeremy Allison
parent
60500fac30
commit
01a5c3ea4b
@@ -255,7 +255,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute,
|
||||
break;
|
||||
}
|
||||
|
||||
param = SMB_MALLOC(12+nlen+last_name_raw.length+2);
|
||||
param = SMB_MALLOC_ARRAY(char, 12+nlen+last_name_raw.length+2);
|
||||
if (!param) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user