diff options
author | Dirk Lemstra <dirk@lemstra.org> | 2019-04-20 20:53:40 +0200 |
---|---|---|
committer | Dirk Lemstra <dirk@lemstra.org> | 2019-04-20 20:53:40 +0200 |
commit | 702959f5f96f6a25ec6f9c05ce6f848f0a7afb18 (patch) | |
tree | 83bbead7e5d496323b4967ffd28ba798e0945a1b /coders/mat.c | |
parent | 5e30422cf6fc4872dedb733c9471b6d82fee8122 (diff) | |
download | ImageMagick-702959f5f96f6a25ec6f9c05ce6f848f0a7afb18.tar.gz |
Corrected variable names.
Diffstat (limited to 'coders/mat.c')
-rw-r--r-- | coders/mat.c | 10 |
1 files changed, 5 insertions, 5 deletions
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'; |