summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2016-01-09 08:04:29 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2016-01-09 08:04:29 +0000
commit6299675b9f53997ce5fe87e78f9637db4a95fa1a (patch)
treec6b46748b7acbd43285980c4499bed56654716f3
parent06ddd0b7ac08ee057f969b2adf2c7ba8379ea6e1 (diff)
Notes
-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 418e8dcc62982..d878af495aca9 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;
}