From a22ed494f80e3a45a8b7fc7d4ad781b802c61bc5 Mon Sep 17 00:00:00 2001 From: Hiroki Sato Date: Wed, 25 Jan 2012 07:45:15 +0000 Subject: [PATCH] Fix a SIGSEGV problem in directory entry renaming. --- usr.sbin/makefs/cd9660.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index 336b1f7bad73..5d207c7ce0dd 100644 --- a/usr.sbin/makefs/cd9660.c +++ b/usr.sbin/makefs/cd9660.c @@ -1086,6 +1086,8 @@ cd9660_rename_filename(cd9660node *iter, int num, int delete_chars) */ while (count < maxlength) { + if (*naming == ';') + break; naming++; count++; }