Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
authortrasz <trasz@FreeBSD.org>
Thu, 18 Jun 2015 21:55:55 +0000 (21:55 +0000)
committertrasz <trasz@FreeBSD.org>
Thu, 18 Jun 2015 21:55:55 +0000 (21:55 +0000)
commit19250d4f16f66aaad903ed821f23db1b699eeb83
tree4066f81eaf35cc353c8f3611fe6de9b0fd9df77f
parent37e1f5956c5d18fa0bb179ce4913b67eec397465
Fix off-by-one error in fstyp(8) and geom_label(4) that made them use
a single space (" ") as a CD9660 label name when no label was present.
Similar problem was also present in msdosfs label recognition.

PR: 200828
Differential Revision: https://reviews.freebsd.org/D2830
Reviewed by: asomers@, emaste@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
sys/geom/label/g_label.c
sys/geom/label/g_label.h
sys/geom/label/g_label_iso9660.c
sys/geom/label/g_label_msdosfs.c
usr.sbin/fstyp/cd9660.c
usr.sbin/fstyp/fstyp.c
usr.sbin/fstyp/fstyp.h
usr.sbin/fstyp/msdosfs.c