From 03c8ec108059a1573d64178e93c354d3d3a5d882 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 16 Apr 2019 16:51:18 -0400 Subject: [PATCH] Wrong sizeof() parameter --- MagickCore/timer-private.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/timer-private.h b/MagickCore/timer-private.h index b823cfeff..a58d3cf43 100644 --- a/MagickCore/timer-private.h +++ b/MagickCore/timer-private.h @@ -33,7 +33,7 @@ static inline void GetUTCTime(const time_t *timep,struct tm *result) my_time=gmtime(timep); if (my_time != (struct tm *) NULL) - (void) memcpy(result,my_time,sizeof(gm_time)); + (void) memcpy(result,my_time,sizeof(*my_time)); } #endif } @@ -49,7 +49,7 @@ static inline void GetLocalTime(const time_t *timep,struct tm *result) my_time=localtime(timep); if (my_time != (struct tm *) NULL) - (void) memcpy(result,my_time,sizeof(gm_time)); + (void) memcpy(result,my_time,sizeof(*my_time)); } #endif } -- 2.40.0