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; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"