Oops, Terminate string
This commit is contained in:
parent
fc9f706ecb
commit
d1acc73f23
|
@ -172,6 +172,7 @@ FcDirCacheBasenameMD5 (FcConfig *config, const FcChar8 *dir, FcChar8 cache_base[
|
||||||
key = (FcChar8 *) malloc (dl + sl + 1);
|
key = (FcChar8 *) malloc (dl + sl + 1);
|
||||||
memcpy (key, dir, dl);
|
memcpy (key, dir, dl);
|
||||||
memcpy (key + dl, salt, sl + 1);
|
memcpy (key + dl, salt, sl + 1);
|
||||||
|
key[dl + sl] = 0;
|
||||||
if (!orig_dir)
|
if (!orig_dir)
|
||||||
orig_dir = dir;
|
orig_dir = dir;
|
||||||
dir = key;
|
dir = key;
|
||||||
|
|
Loading…
Reference in New Issue