X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=cprogs%2Frwbuffer.c;h=4d8503cfa9ff24b04e68944ff7e1116a12c374f5;hb=236653b7bc419c519da8d479abc0c78d0a748c4c;hp=ee97fca6bac443802b18194127bc58e42822fc9b;hpb=6ed40dfb1e1c0d5de4ea311161dd4d0180bfb364;p=chiark-utils.git diff --git a/cprogs/rwbuffer.c b/cprogs/rwbuffer.c index ee97fca..4d8503c 100644 --- a/cprogs/rwbuffer.c +++ b/cprogs/rwbuffer.c @@ -13,7 +13,7 @@ * * 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 @@ -22,8 +22,9 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public - * License along with this file; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * License along with this file; if not, consult the Free Software + * Foundation's website at www.fsf.org, or the GNU Project website at + * www.gnu.org. * */ @@ -100,7 +101,7 @@ void startup(const char *const *argv) { 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 {