*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2,
+ * published by the Free Software Foundation; either version 3,
* or (at your option) any later version.
*
* This is distributed in the hope that it will be useful, but
case 'b': shift= 0; break;
default: usageerr("buffer size unit unknown");
}
- if (buffersize > (RWBUFFER_SIZE_MB_MAX >> shift))
+ if (buffersize > ((RWBUFFER_SIZE_MB_MAX << 20) >> shift))
usageerr("buffer size too big");
buffersize <<= shift;
} else {