summaryrefslogtreecommitdiff
path: root/magick/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'magick/module.c')
-rw-r--r--magick/module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/magick/module.c b/magick/module.c
index e8c6eca..7236f24 100644
--- a/magick/module.c
+++ b/magick/module.c
@@ -1,5 +1,5 @@
/*
-% Copyright (C) 2003 - 2019 GraphicsMagick Group
+% Copyright (C) 2003 - 2022 GraphicsMagick Group
% Copyright (C) 2002 ImageMagick Studio
%
% This program is covered by multiple licenses, which are described in
@@ -589,7 +589,7 @@ FindMagickModule(const char *filename,MagickModuleType module_type,
return MagickFail;
}
- if (IsEventLogging())
+ if (IsEventLogged(ConfigureEvent))
{
char
list_seperator[2],
@@ -1029,7 +1029,7 @@ InitializeModuleSearchPath(MagickModuleType module_type,
if (skip == MagickFalse)
{
if (buffer[length-1] != DirectorySeparator[0])
- (void) strcat(buffer,DirectorySeparator);
+ (void) strlcat(buffer,DirectorySeparator,sizeof(buffer));
AddModulePath(path_map,&path_index,buffer,exception);
}
start += length+1;
@@ -1167,7 +1167,7 @@ InitializeModuleSearchPath(MagickModuleType module_type,
/*
Search current directory.
*/
- strcpy(path,"");
+ strlcpy(path,"",sizeof(path));
AddModulePath(path_map,&path_index,path,exception);
return (status);