projects
/
platform
/
upstream
/
libsolv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 0.6.20
[platform/upstream/libsolv.git]
/
src
/
util.c
diff --git
a/src/util.c
b/src/util.c
index
d611297
..
b2e9179
100644
(file)
--- a/
src/util.c
+++ b/
src/util.c
@@
-235,7
+235,7
@@
solv_hex2bin(const char **strp, unsigned char *buf, int bufl)
d = c - ('A' - 10);
else
break;
- c =
*++str
;
+ c =
str[1]
;
d <<= 4;
if (c >= '0' && c <= '9')
d |= c - '0';
@@
-246,7
+246,7
@@
solv_hex2bin(const char **strp, unsigned char *buf, int bufl)
else
break;
buf[i] = d;
-
++str
;
+
str += 2
;
}
*strp = str;
return i;