From 3528795b556b9a68cf18700403b5f9b47ea5f683 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 10 Jun 2012 15:09:08 +0200 Subject: [PATCH] Corrected computation for error ISO_OVWRT_FIFO_TOO_SMALL. --- libisofs/ecma119.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/ecma119.c b/libisofs/ecma119.c index 2dc758f..a856d13 100644 --- a/libisofs/ecma119.c +++ b/libisofs/ecma119.c @@ -2151,7 +2151,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img) /* create the ring buffer */ if (opts->overwrite != NULL && - opts->fifo_size / 2048 < 32 + target->partition_offset) { + opts->fifo_size < 32 + target->partition_offset) { /* The ring buffer must be large enough to take opts->overwrite */ ret = ISO_OVWRT_FIFO_TOO_SMALL;