Oops, Terminate string

This commit is contained in:
Akira TAGOH 2019-04-02 10:25:46 +00:00
parent fc9f706ecb
commit d1acc73f23
1 changed files with 1 additions and 0 deletions

View File

@ -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;