summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-08-13 18:27:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-08-13 18:27:21 +0000
commite84bf4a5995b26423129b9339dd387e2a7431a0a (patch)
tree56ba8122b2cf9c2b4f9727148ee03b79478a348a /plugins/WhenWasIt
parentea20be4475a06afea0da33b46ec5957f7b1ced99 (diff)
data format fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14943 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt')
-rw-r--r--plugins/WhenWasIt/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/WhenWasIt/src/utils.cpp b/plugins/WhenWasIt/src/utils.cpp
index 3bfa1843f2..245394f1ef 100644
--- a/plugins/WhenWasIt/src/utils.cpp
+++ b/plugins/WhenWasIt/src/utils.cpp
@@ -102,7 +102,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(buffer + 2, &tmp[i * 2], 2);
- sscanf(buffer, "%x", &outData[i]);
+ sscanf(buffer, "%hhx", &outData[i]);
}
}