git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r4055: fixed more places to use type safe allocation macros
[bbaumbach/samba-autobuild/.git]
/
source4
/
lib
/
replace.c
diff --git
a/source4/lib/replace.c
b/source4/lib/replace.c
index 35e0277c59bb9ccb27525e95697e5c91b3c391c0..ca367da9b560f5f5277ae3c92f8cc6185f4a786a 100644
(file)
--- a/
source4/lib/replace.c
+++ b/
source4/lib/replace.c
@@
-205,7
+205,7
@@
Corrections by richard.kettlewell@kewill.com
struct group *g;
char *gr;
- if((grouplst =
(gid_t *)malloc(sizeof(gid_t) *
max_gr)) == NULL) {
+ if((grouplst =
malloc_array_p(gid_t,
max_gr)) == NULL) {
DEBUG(0,("initgroups: malloc fail !\n"));
return -1;
}