From: Bernhard Urban Date: Sat, 12 Mar 2016 00:05:36 +0000 (-0800) Subject: [mono-config] fix copying of prefix during replacement X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=c7ccd6ef310f09eefee44ae9722f6a15a75ad25b;p=mono.git [mono-config] fix copying of prefix during replacement --- diff --git a/mono/metadata/mono-config.c b/mono/metadata/mono-config.c index c8f9dac186d..2eba9e86d4b 100644 --- a/mono/metadata/mono-config.c +++ b/mono/metadata/mono-config.c @@ -285,7 +285,7 @@ dllmap_start (gpointer user_data, char *result; result = (char *)g_malloc (libdir_len-strlen("$mono_libdir")+strlen(attribute_values[i])+1); - strncpy (result, attribute_names[i], p-attribute_values[i]); + strncpy (result, attribute_values[i], p-attribute_values[i]); strcpy (result+(p-attribute_values[i]), libdir); strcat (result, p+strlen("$mono_libdir")); info->target = result;