Skip to content

Commit 61aa62c

Browse files
author
Cristy
committed
eliminate compiler warning
1 parent c487241 commit 61aa62c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

magick/thread-private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static inline void DecorateFilenameWithThreadId(const char *filename,
103103
id=GetMagickThreadId();
104104
(void) memcpy(bytes,&id,sizeof(id));
105105
for (i=0; i < (ssize_t) sizeof(bytes); i++)
106-
(void) sprintf(thread_id+2*i,"%02x",bytes[i]);
106+
(void) FormatLocaleString(thread_id+2*i,MagickPathExtent,"%02x",bytes[i]);
107107
thread_id[sizeof(thread_id)-1]='\0';
108108
(void) FormatLocaleString(thread_filename,MagickPathExtent,"%s|%s",thread_id,
109109
filename);

0 commit comments

Comments
 (0)