Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jan 2016 08:04:29 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293468 - head/lib/libstand
Message-ID:  <201601090804.u0984TFc085027@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601090804.u0984TFc085027>