fix finding iconv.dll and others

svn: r4016
This commit is contained in:
Matthew Flatt 2006-08-10 03:00:05 +00:00
parent 4aa398ef7c
commit db490d5755

View File

@ -4805,7 +4805,7 @@ wchar_t *scheme_get_dll_path(wchar_t *s)
len1 = wc_strlen(dlldir);
len2 = wc_strlen(s);
p = (wchar_t *)scheme_malloc_atomic((len1 + len2 + 2) * sizeof(wchar_t));
memcpy(p, dlldir, len1);
memcpy(p, dlldir, len1 * sizeof(wchar_t));
if (p[len1 - 1] != '\\') {
p[len1++] = '\\';
}