Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt PR/52522: Piotr Meyer: Don't NUL terminate the gpt ...
details: https://anonhg.NetBSD.org/src/rev/43bfd84133fa
branches: trunk
changeset: 826446:43bfd84133fa
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 05 18:30:46 2017 +0000
description:
PR/52522: Piotr Meyer: Don't NUL terminate the gpt label name.
XXX: pullup-8
diffstat:
sbin/gpt/gpt.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r f24323c05be5 -r 43bfd84133fa sbin/gpt/gpt.c
--- a/sbin/gpt/gpt.c Tue Sep 05 18:07:59 2017 +0000
+++ b/sbin/gpt/gpt.c Tue Sep 05 18:30:46 2017 +0000
@@ -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 @@
} else
s16[s16idx++] = htole16((uint16_t)utfchar);
if (s16idx == s16len) {
- s16[--s16idx] = 0;
return;
}
}
Home |
Main Index |
Thread Index |
Old Index