svn commit: r293468 - head/lib/libstand
Andrey V. Elsukov
ae at FreeBSD.org
Sat Jan 9 08:04:30 UTC 2016
Author: ae
Date: Sat Jan 9 08:04:29 2016
New Revision: 293468
URL: https://svnweb.freebsd.org/changeset/base/293468
Log:
Make tohex() work as expected.
Modified:
head/lib/libstand/uuid_to_string.c
Modified: head/lib/libstand/uuid_to_string.c
==============================================================================
--- head/lib/libstand/uuid_to_string.c Sat Jan 9 08:02:35 2016 (r293467)
+++ head/lib/libstand/uuid_to_string.c Sat Jan 9 08:04:29 2016 (r293468)
@@ -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;
}
More information about the svn-src-head
mailing list