*/
#include "MagickCore/studio.h"
#include "MagickCore/client.h"
+#include "MagickCore/log.h"
#include "MagickCore/string_.h"
\f
/*
MagickExport const char *SetClientName(const char *name)
{
static char
- client_name[MagickPathExtent] = "Magick";
+ client_name[256] = "";
if ((name != (char *) NULL) && (*name != '\0'))
- (void) CopyMagickString(client_name,name,MagickPathExtent);
- return(client_name);
+ {
+ (void) CopyMagickString(client_name,name,sizeof(client_name));
+ (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),"%s",client_name);
+ }
+ return(*client_name == '\0' ? "Magick" : client_name);
}
\f
/*
client_path[MagickPathExtent] = "";
if ((path != (char *) NULL) && (*path != '\0'))
- (void) CopyMagickString(client_path,path,MagickPathExtent);
+ {
+ (void) CopyMagickString(client_path,path,MagickPathExtent);
+ (void) LogMagickEvent(ConfigureEvent,GetMagickModule(),"%s",path);
+ }
return(client_path);
}