Skip to content

Commit 733d22b

Browse files
committed
[REFACT] Changed format string in reading signature chunk
1 parent 2fcfb54 commit 733d22b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sig_finder/sig_finder/SigTree.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ size_t SigTree::loadFromFile(std::ifstream& input)
188188
unsigned int val = 0;
189189
if (is_hex(chunk[0]) && is_hex(chunk[1])) {
190190
type = IMM;
191-
sscanf(chunk, "%X", &val);
191+
sscanf(chunk, "%2X", &val);
192192
}
193193
else if (chunk[0] == WILD_ONE) {
194194
type = WILDC;

0 commit comments

Comments
 (0)