From 9217666566105d7dda38ad42e6024a75fef13505 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 6 Apr 2009 16:15:39 +0000 Subject: [PATCH] Fixed bug introduced with 2575 --- libisoburn/trunk/xorriso/xorriso_timestamp.h | 2 +- libisoburn/trunk/xorriso/xorrisoburn.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libisoburn/trunk/xorriso/xorriso_timestamp.h b/libisoburn/trunk/xorriso/xorriso_timestamp.h index de42bd07..3ad1e47c 100644 --- a/libisoburn/trunk/xorriso/xorriso_timestamp.h +++ b/libisoburn/trunk/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2009.04.06.143109" +#define Xorriso_timestamP "2009.04.06.161541" diff --git a/libisoburn/trunk/xorriso/xorrisoburn.c b/libisoburn/trunk/xorriso/xorrisoburn.c index 9c927ab5..b64d309d 100644 --- a/libisoburn/trunk/xorriso/xorrisoburn.c +++ b/libisoburn/trunk/xorriso/xorrisoburn.c @@ -9811,7 +9811,7 @@ int Xorriso_rename_suffix(struct XorrisO *xorriso, IsoNode *node, char *suffix, if(strcmp(old_name + lo - ls, suffix) != 0) { ret= 2; goto ex; } - if(lo > sizeof(new_name)) + if(lo >= SfileadrL) goto cannot_remove_suffix; strcpy(new_name, old_name); new_name[lo - ls]= 0; @@ -9953,7 +9953,7 @@ int Xorriso_set_filter(struct XorrisO *xorriso, void *in_node, if(strcmp(old_name + lo - ls, suffix) != 0) { ret= 2; goto ex; } - if(lo > sizeof(new_name)) + if(lo >= sizeof(new_name)) goto cannot_remove_suffix; strcpy(new_name, old_name); new_name[lo - ls]= 0;