[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [k3b/multisession] libk3b/projects: Add more check for inquiring the ISO filesystem size
From: Leslie Zhai <xiangzhai83 () gmail ! com>
Date: 2016-09-21 4:37:06
Message-ID: E1bmZHO-0007iB-4h () code ! kde ! org
[Download RAW message or body]
Git commit e9faad4a24e80ee83a3881707e394ca4be66f5c7 by Leslie Zhai.
Committed on 21/09/2016 at 04:36.
Pushed by lesliezhai into branch 'multisession'.
Add more check for inquiring the ISO filesystem size
CCBUG: 367639
M +5 -1 libk3b/projects/k3bgrowisofswriter.cpp
http://commits.kde.org/k3b/e9faad4a24e80ee83a3881707e394ca4be66f5c7
diff --git a/libk3b/projects/k3bgrowisofswriter.cpp b/libk3b/projects/k3bgrowisofswriter.cpp
index 20f675f..c8fdcdc 100644
--- a/libk3b/projects/k3bgrowisofswriter.cpp
+++ b/libk3b/projects/k3bgrowisofswriter.cpp
@@ -211,7 +211,11 @@ bool K3b::GrowisofsWriter::prepareProcess()
if (fseek(fptr, 32 * 1024 + 80, SEEK_SET) == 0) {
char buf[4] = { '\0' };
fread(buf, 1, sizeof(buf), fptr);
- d->process << "-C 0," << buf;
+ int next = atoi(buf);
+ bool ok;
+ int last = ms[0].toInt(&ok);
+ if (ok && next > last)
+ d->process << "-C " << ms[0] << "," << buf;
} else {
qWarning() << strerror(errno);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic