Commit 3b6b8d46 authored by Vincent Wei's avatar Vincent Wei
Browse files

fix a minor bug: match 12 characters when removing PNG files

parent a4429bed
......@@ -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);
......
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