summaryrefslogtreecommitdiffstats
path: root/lib/libstand/uuid_to_string.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-01-11 19:36:44 +0000
committerdim <dim@FreeBSD.org>2016-01-11 19:36:44 +0000
commit79c349e677e1561f808f42fec3e6151d88397dd8 (patch)
treeea943142da24fe9f4d36e8fd2ca89c22a874740d /lib/libstand/uuid_to_string.c
parentca5a713355f56c0b7f18b4a361310ac52b13b066 (diff)
parent4ba3f354902d216384ffbcd5a6b1b3e219d451ea (diff)
downloadFreeBSD-src-79c349e677e1561f808f42fec3e6151d88397dd8.zip
FreeBSD-src-79c349e677e1561f808f42fec3e6151d88397dd8.tar.gz
Merge ^/head r293430 through r293685.
Diffstat (limited to 'lib/libstand/uuid_to_string.c')
-rw-r--r--lib/libstand/uuid_to_string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/uuid_to_string.c b/lib/libstand/uuid_to_string.c
index efe921c..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;
}
@@ -107,5 +107,5 @@ uuid_to_string(const uuid_t *u, char **s, uint32_t *status)
tohex(&w, 2, u->node[3]);
tohex(&w, 2, u->node[4]);
tohex(&w, 2, u->node[5]);
- *w++ - '\0';
+ *w++ = '\0';
}
OpenPOWER on IntegriCloud