Module Name: src Committed By: christos Date: Fri Dec 4 01:46:12 UTC 2015
Modified Files: src/sbin/gpt: show.c Log Message: fix label printing. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sbin/gpt/show.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/gpt/show.c diff -u src/sbin/gpt/show.c:1.29 src/sbin/gpt/show.c:1.30 --- src/sbin/gpt/show.c:1.29 Wed Dec 2 21:02:43 2015 +++ src/sbin/gpt/show.c Thu Dec 3 20:46:12 2015 @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: show.c,v 1.29 2015/12/03 02:02:43 christos Exp $"); +__RCSID("$NetBSD: show.c,v 1.30 2015/12/04 01:46:12 christos Exp $"); #endif #include <sys/types.h> @@ -137,7 +137,7 @@ show(gpt_t gpt, int show) if (show & SHOW_LABEL) { utf16_to_utf8(ent->ent_name, utfbuf, sizeof(utfbuf)); - b = (char *)buf; + b = (char *)utfbuf; } else if (show & SHOW_GUID) { gpt_uuid_snprintf( buf, sizeof(buf), "%d", ent->ent_guid);