Skip to content

Commit 4b57ae6

Browse files
author
iss
committed
small fix for pravetz dsk images
1 parent 1c6adaa commit 4b57ae6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

disk.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ static struct diskimage *diskimage_alloc( Uint32 rawimglen )
168168
{
169169
// FIXME: this is temporary solution to allow
170170
// low-level formatting up to 128 track per side
171-
if( rawimglen < 128*2*6400+256 ) rawimglen = 128*2*6400+256;
171+
if( 143360 != rawimglen && rawimglen < 128*2*6400+256 )
172+
rawimglen = 128*2*6400+256;
173+
172174
buf = malloc( rawimglen );
173175
if( !buf ) return NULL;
174176
}

0 commit comments

Comments
 (0)