diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-13 18:27:21 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-08-13 18:27:21 +0000 |
commit | e84bf4a5995b26423129b9339dd387e2a7431a0a (patch) | |
tree | 56ba8122b2cf9c2b4f9727148ee03b79478a348a /plugins/CmdLine | |
parent | ea20be4475a06afea0da33b46ec5957f7b1ced99 (diff) |
data format fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14943 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r-- | plugins/CmdLine/src/utils.cpp | 2 |
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]);
}
}
|