From 213e9c871367df9e4445a15b23c0d8943da17a77 Mon Sep 17 00:00:00 2001 From: hrs Date: Wed, 25 Jan 2012 07:45:15 +0000 Subject: Fix a SIGSEGV problem in directory entry renaming. --- usr.sbin/makefs/cd9660.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/makefs') diff --git a/usr.sbin/makefs/cd9660.c b/usr.sbin/makefs/cd9660.c index 336b1f7ba..5d207c7 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++; } -- cgit v1.1