Commit d1acc73f authored by Akira TAGOH's avatar Akira TAGOH

Oops, Terminate string

parent fc9f706e
......@@ -172,6 +172,7 @@ FcDirCacheBasenameMD5 (FcConfig *config, const FcChar8 *dir, FcChar8 cache_base[
key = (FcChar8 *) malloc (dl + sl + 1);
memcpy (key, dir, dl);
memcpy (key + dl, salt, sl + 1);
key[dl + sl] = 0;
if (!orig_dir)
orig_dir = dir;
dir = key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment