From owner-svn-src-head@freebsd.org Sat Jan 9 08:04:30 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 508AFA678C3; Sat, 9 Jan 2016 08:04:30 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 22D61150A; Sat, 9 Jan 2016 08:04:30 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0984T26085028; Sat, 9 Jan 2016 08:04:29 GMT (envelope-from ae@FreeBSD.org) Received: (from ae@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0984TFc085027; Sat, 9 Jan 2016 08:04:29 GMT (envelope-from ae@FreeBSD.org) Message-Id: <201601090804.u0984TFc085027@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ae set sender to ae@FreeBSD.org using -f From: "Andrey V. Elsukov" Date: Sat, 9 Jan 2016 08:04:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r293468 - head/lib/libstand X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Jan 2016 08:04:30 -0000 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; }