summaryrefslogtreecommitdiff
path: root/source/lib/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/time.c')
-rw-r--r--source/lib/time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index e63e0b29659..e7b537151ff 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -190,8 +190,7 @@ static int TimeZoneFaster(time_t t)
time_t low,high;
zone = TimeZone(t);
- tdt = (struct dst_table *)Realloc(dst_table,
- sizeof(dst_table[0])*(i+1));
+ tdt = SMB_REALLOC_ARRAY(dst_table, struct dst_table, i+1);
if (!tdt) {
DEBUG(0,("TimeZoneFaster: out of memory!\n"));
SAFE_FREE(dst_table);