Skip to content
Snippets Groups Projects
Commit d9d5010e authored by Brian Carrier's avatar Brian Carrier
Browse files

Merge pull request #205 from APriestman/master

Added option for parsing multi-part images in the form filename.bin, fil...
parents 4f135148 a1142c4a
No related branches found
No related tags found
No related merge requests found
...@@ -142,6 +142,13 @@ getSegmentName(const TSK_TCHAR * a_startingName, int a_segmentNumber) ...@@ -142,6 +142,13 @@ getSegmentName(const TSK_TCHAR * a_startingName, int a_segmentNumber)
return newName; return newName;
} }
// numeric counter, variable width
if (endsWith(a_startingName, _TSK_T(".bin"))) {
TSNPRINTF(newName + nameLen - 4, 36, _TSK_T("(%d).bin"),
a_segmentNumber);
return newName;
}
// unknown name format // unknown name format
free(newName); free(newName);
return NULL; return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment