diff options
author | dim <dim@FreeBSD.org> | 2016-01-11 19:36:44 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-11 19:36:44 +0000 |
commit | 79c349e677e1561f808f42fec3e6151d88397dd8 (patch) | |
tree | ea943142da24fe9f4d36e8fd2ca89c22a874740d /lib/libstand/uuid_to_string.c | |
parent | ca5a713355f56c0b7f18b4a361310ac52b13b066 (diff) | |
parent | 4ba3f354902d216384ffbcd5a6b1b3e219d451ea (diff) | |
download | FreeBSD-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.c | 4 |
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'; } |