From 702959f5f96f6a25ec6f9c05ce6f848f0a7afb18 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 20 Apr 2019 20:53:40 +0200 Subject: Corrected variable names. --- coders/mat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'coders/mat.c') diff --git a/coders/mat.c b/coders/mat.c index 4a4f85d51..776ed9a0f 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1586,7 +1586,7 @@ static MagickBooleanType WriteMATImage(const ImageInfo *image_info,Image *image, imageListLength; struct tm - local_time; + utc_time; time_t current_time; @@ -1607,13 +1607,13 @@ static MagickBooleanType WriteMATImage(const ImageInfo *image_info,Image *image, image->depth=8; current_time=GetMagickTime(); - GetMagickUTCtime(¤t_time,&local_time); + GetMagickUTCtime(¤t_time,&utc_time); (void) memset(MATLAB_HDR,' ',MagickMin(sizeof(MATLAB_HDR),124)); FormatLocaleString(MATLAB_HDR,sizeof(MATLAB_HDR), "MATLAB 5.0 MAT-file, Platform: %s, Created on: %s %s %2d %2d:%2d:%2d %d", - OsDesc,DayOfWTab[local_time.tm_wday],MonthsTab[local_time.tm_mon], - local_time.tm_mday,local_time.tm_hour,local_time.tm_min, - local_time.tm_sec,local_time.tm_year+1900); + OsDesc,DayOfWTab[utc_time.tm_wday],MonthsTab[utc_time.tm_mon], + utc_time.tm_mday,utc_time.tm_hour,utc_time.tm_min, + utc_time.tm_sec,utc_time.tm_year+1900); MATLAB_HDR[0x7C]=0; MATLAB_HDR[0x7D]=1; MATLAB_HDR[0x7E]='I'; -- cgit v1.2.3