Commit e3b771a6 authored by Keith Packard's avatar Keith Packard
Browse files

Using uninitialized (and wrong) variable in FcStrCopyFilename.

A typo from the change in where filename canonicalization occurs.
parent 04cedae0
......@@ -770,7 +770,7 @@ FcStrCopyFilename (const FcChar8 *s)
return 0;
size = strlen ((char *) home) + strlen ((char *) s);
full = (FcChar8 *) malloc (size);
if (!new)
if (!full)
return 0;
strcpy ((char *) full, (char *) home);
strcat ((char *) full, (char *) s + 1);
......
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