summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2016-01-09 08:04:29 +0000
committerae <ae@FreeBSD.org>2016-01-09 08:04:29 +0000
commit724790746ef5fa9a354a48736c11ba0478360460 (patch)
treec6b46748b7acbd43285980c4499bed56654716f3 /lib
parent258e30c8e446e79763a92c76fc20e23133c2c714 (diff)
downloadFreeBSD-src-724790746ef5fa9a354a48736c11ba0478360460.zip
FreeBSD-src-724790746ef5fa9a354a48736c11ba0478360460.tar.gz
Make tohex() work as expected.
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/uuid_to_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/uuid_to_string.c b/lib/libstand/uuid_to_string.c
index 418e8dc..d878af4 100644
--- a/lib/libstand/uuid_to_string.c
+++ b/lib/libstand/uuid_to_string.c
@@ -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;
}
OpenPOWER on IntegriCloud