summaryrefslogtreecommitdiff
path: root/plugins/CmdLine
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r--plugins/CmdLine/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CmdLine/src/utils.cpp b/plugins/CmdLine/src/utils.cpp
index 7e8520d06c..4631775c63 100644
--- a/plugins/CmdLine/src/utils.cpp
+++ b/plugins/CmdLine/src/utils.cpp
@@ -67,7 +67,7 @@ void HexToBin(char *inData, ULONG &size, LPBYTE &outData)
buffer[4] = '\0'; //mark the end of the string
for (UINT i = 0; i < size; i++) {
strncpy_s(buffer + 2, 3, &tmp[i*2], _TRUNCATE);
- sscanf(buffer, "%x", &outData[i]);
+ sscanf(buffer, "%hhx", &outData[i]);
}
}