Module Name:    src
Committed By:   christos
Date:           Tue Sep  5 18:30:46 UTC 2017

Modified Files:
        src/sbin/gpt: gpt.c

Log Message:
PR/52522: Piotr Meyer: Don't NUL terminate the gpt label name.
XXX: pullup-8


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 src/sbin/gpt/gpt.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/gpt.c
diff -u src/sbin/gpt/gpt.c:1.70 src/sbin/gpt/gpt.c:1.71
--- src/sbin/gpt/gpt.c:1.70	Wed Feb 15 22:32:17 2017
+++ src/sbin/gpt/gpt.c	Tue Sep  5 14:30:46 2017
@@ -35,7 +35,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/gpt.c,v 1.16 2006/07/07 02:44:23 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt.c,v 1.70 2017/02/16 03:32:17 christos Exp $");
+__RCSID("$NetBSD: gpt.c,v 1.71 2017/09/05 18:30:46 christos Exp $");
 #endif
 
 #include <sys/param.h>
@@ -224,7 +224,6 @@ utf8_to_utf16(const uint8_t *s8, uint16_
 			} else
 				s16[s16idx++] = htole16((uint16_t)utfchar);
 			if (s16idx == s16len) {
-				s16[--s16idx] = 0;
 				return;
 			}
 		}

Reply via email to