From 1f75d139cf157096eb5999be4e4355b7986f7f96 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Wed, 17 Oct 2018 10:01:10 +0200 Subject: Close #871: Sectors overflow comparition is moved. --- client/engine/Disk.lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/engine') diff --git a/client/engine/Disk.lib b/client/engine/Disk.lib index a7db9209..06744bd9 100755 --- a/client/engine/Disk.lib +++ b/client/engine/Disk.lib @@ -128,10 +128,10 @@ while [ $# -gt 0 ]; do echo "$DISK$PART : start=$START, size=$SIZE, Id=$ID" >>$tmpsfdisk # Error si se supera el nº total de sectores. START=$[START+SIZE] - [ $START -le $SECTORS ] || ogRaiseError $OG_ERR_FORMAT "$[START/2] > $[SECTORS/2]" || return $? if [ "$IOSIZE" == "4096" -a $PART -gt 4 ]; then START=$[START+2048] fi + [ $START -le $SECTORS ] || ogRaiseError $OG_ERR_FORMAT "$[START/2] > $[SECTORS/2]" || return $? PART=$[PART+1] shift done -- cgit v1.2.3-18-g5258