Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
web-display-server
Commits
3b6b8d46
Commit
3b6b8d46
authored
Nov 24, 2020
by
Vincent Wei
Browse files
fix a minor bug: match 12 characters when removing PNG files
parent
a4429bed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/unixsocket.c
View file @
3b6b8d46
...
...
@@ -356,7 +356,7 @@ static int remove_png_files (USClient* us_client)
dirp
=
opendir
(
dir_name
);
while
((
dp
=
readdir
(
dirp
))
!=
NULL
)
{
if
(
strncmp
(
dp
->
d_name
,
file_name
,
9
)
==
0
)
{
if
(
strncmp
(
dp
->
d_name
,
file_name
,
12
)
==
0
)
{
strcpy
(
full_path
,
dir_name
);
strcat
(
full_path
,
"/"
);
strcat
(
full_path
,
dp
->
d_name
);
...
...
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