We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c6adaa commit 4b57ae6Copy full SHA for 4b57ae6
disk.c
@@ -168,7 +168,9 @@ static struct diskimage *diskimage_alloc( Uint32 rawimglen )
168
{
169
// FIXME: this is temporary solution to allow
170
// low-level formatting up to 128 track per side
171
- if( rawimglen < 128*2*6400+256 ) rawimglen = 128*2*6400+256;
+ if( 143360 != rawimglen && rawimglen < 128*2*6400+256 )
172
+ rawimglen = 128*2*6400+256;
173
+
174
buf = malloc( rawimglen );
175
if( !buf ) return NULL;
176
}
0 commit comments