mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
r17316: More C++ warnings -- 456 left
(This used to be commit 1e4ee728df
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
5a5deade6e
commit
e23781b3b3
@ -353,7 +353,7 @@ char *file_pload(char *syscmd, size_t *size)
|
||||
total = 0;
|
||||
|
||||
while ((n = read(fd, buf, sizeof(buf))) > 0) {
|
||||
p = SMB_REALLOC(p, total + n + 1);
|
||||
p = (char *)SMB_REALLOC(p, total + n + 1);
|
||||
if (!p) {
|
||||
DEBUG(0,("file_pload: failed to expand buffer!\n"));
|
||||
close(fd);
|
||||
|
Reference in New Issue
Block a user