chiark / gitweb /
nntpid as found in chiark's /usr/local/bin more recently
[chiark-utils.git] / cprogs / rwbuffer.c
index ee97fca6bac443802b18194127bc58e42822fc9b..4d8503cfa9ff24b04e68944ff7e1116a12c374f5 100644 (file)
@@ -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 {