fix illuminati symbols appearing when rescanning stamps

This commit is contained in:
jacob1 2017-09-04 12:51:19 -04:00
parent 07e879e74c
commit e4089a276a

View File

@ -1204,9 +1204,7 @@ void Client::RescanStamps()
{ {
if(strncmp(entry->d_name, "..", 3) && strncmp(entry->d_name, ".", 2) && strstr(entry->d_name, ".stm") && strlen(entry->d_name) == 14) if(strncmp(entry->d_name, "..", 3) && strncmp(entry->d_name, ".", 2) && strstr(entry->d_name, ".stm") && strlen(entry->d_name) == 14)
{ {
char stampname[11]; stampIDs.push_front(std::string(entry->d_name).substr(0, 10));
strncpy(stampname, entry->d_name, 10);
stampIDs.push_front(stampname);
} }
} }
closedir(directory); closedir(directory);