aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-05-31 08:39:48 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-05-31 08:39:48 +0800
commit7725b222acc764ef02b454728a0ff0194df815c3 (patch)
treeb1347b2cd632121f4e53a3246d4a13b1e74db88e
parent0b7e079f68bf6f443ce89e98e49d245a4302cedc (diff)
downloaddevel-7725b222acc764ef02b454728a0ff0194df815c3.tar.gz
devel-7725b222acc764ef02b454728a0ff0194df815c3.tar.xz
devel-7725b222acc764ef02b454728a0ff0194df815c3.zip
fix iso_compare_name
-rw-r--r--isolinux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isolinux.c b/isolinux.c
index 30bff71..236168c 100644
--- a/isolinux.c
+++ b/isolinux.c
@@ -259,6 +259,10 @@ int iso_compare_names(char *de_name, __u32 *len, char *file_name)
p --;
i--;
}
+
+ if ( i <= 0 )
+ return 0;
+
*p = '\0';
/* return the 'real' length of de_name */