Commit 7b0899bb0 for imagemagick.org
commit 7b0899bb0a0105bedfaf8b865474a713e8f0f1d6
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sat Feb 14 22:22:30 2026 -0500
eliminate compiler warning
diff --git a/MagickCore/thread-private.h b/MagickCore/thread-private.h
index 7ca31b69c..45e4368e4 100644
--- a/MagickCore/thread-private.h
+++ b/MagickCore/thread-private.h
@@ -103,7 +103,7 @@ static inline void DecorateFilenameWithThreadId(const char *filename,
id=GetMagickThreadId();
(void) memcpy(bytes,&id,sizeof(id));
for (i=0; i < (ssize_t) sizeof(bytes); i++)
- (void) sprintf(thread_id+2*i,"%02x",bytes[i]);
+ (void) FormatLocaleString(thread_id+2*i,MagickPathExtent,"%02x",bytes[i]);
thread_id[sizeof(thread_id)-1]='\0';
(void) FormatLocaleString(thread_filename,MagickPathExtent,"%s|%s",thread_id,
filename);