summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-10-28 10:46:23 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-10-28 10:46:23 +0000
commit6cd43e7d7021ded4e855cf5071186795e746ffab (patch)
tree53027e86d86c5dd583c3a09cb4a280c33a106f28 /Src
parentfe15a9e2bbf5b87962c0e4b2246e39f293ccf593 (diff)
downloadzsh-6cd43e7d7021ded4e855cf5071186795e746ffab.tar.gz
zsh-6cd43e7d7021ded4e855cf5071186795e746ffab.tar.xz
zsh-6cd43e7d7021ded4e855cf5071186795e746ffab.zip
29879: metafy dlerror message to avoid corruption
Diffstat (limited to 'Src')
-rw-r--r--Src/module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/module.c b/Src/module.c
index a5a6029b4..5cc595c47 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -1597,7 +1597,8 @@ do_load_module(char const *name, int silent)
     ret = try_load_module(name);
     if (!ret && !silent) {
 #ifdef HAVE_DLERROR
-	zwarn("failed to load module `%s': %s", name, dlerror());
+	zwarn("failed to load module `%s': %s", name,
+	      metafy(dlerror(), -1, META_USEHEAP));
 #else
 	zwarn("failed to load module: %s", name);
 #endif