Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
fontconfig
fontconfig
Commits
51afd09d
Commit
51afd09d
authored
Jul 19, 2018
by
Akira TAGOH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unterminated string issue
parent
37c9c16d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/fccache.c
src/fccache.c
+4
-1
No files found.
src/fccache.c
View file @
51afd09d
...
...
@@ -193,10 +193,13 @@ FcDirCacheReadUUID (FcChar8 *dir,
if
((
fd
=
FcOpen
((
char
*
)
uuidname
,
O_RDONLY
))
>=
0
)
{
char
suuid
[
37
];
ssize_t
len
;
memset
(
suuid
,
0
,
sizeof
(
suuid
));
if
(
read
(
fd
,
suuid
,
36
)
>
0
)
len
=
read
(
fd
,
suuid
,
36
);
if
(
len
!=
-
1
)
{
suuid
[
len
]
=
0
;
memset
(
uuid
,
0
,
sizeof
(
uuid
));
if
(
uuid_parse
(
suuid
,
uuid
)
==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment