mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 10:19:04 +00:00
Make tohex() work as expected.
This commit is contained in:
parent
06ddd0b7ac
commit
6299675b9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293468
|
@ -46,7 +46,7 @@ tohex(char **buf, int len, uint32_t val)
|
|||
char *walker = *buf;
|
||||
int i;
|
||||
|
||||
for (i = len - 1; i >= 0; i++) {
|
||||
for (i = len - 1; i >= 0; i--) {
|
||||
walker[i] = hexstr[val & 0xf];
|
||||
val >>= 4;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue