Skip to content

Commit 08b538b

Browse files
committed
[utils] make sure no dots in util_entry's basename for rs232.
1 parent 3322ab6 commit 08b538b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils/utils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,10 @@ std::string util_entry(std::string crunched, size_t fileSize, bool is_dir, bool
236236

237237
if (ext_pos == string::npos)
238238
ext.clear();
239-
239+
240240
// Constrain to 8 characters
241241
basename = basename.substr(0,8);
242+
basename = basename.substr(0,basename.find_first_of('.'));
242243
ext = ext.substr(0,3);
243244

244245
memset(e,0,sizeof(e));

0 commit comments

Comments
 (0)